Crate bevy_picking_selection

Source
Expand description

A plugin for bevy_mod_picking that adds multiselect functionality.

This adds the Deselect and Select Pointer events, including support for bubbling these events.

Structs§

Deselect
Fires when an entity has been deselected
NoDeselect
Marker struct used to mark pickable entities for which you don’t want to trigger a deselection event when picked. This is useful for gizmos or other pickable UI entities.
PickSelection
Tracks the current selection state of the entity.
PointerMultiselect
A component for pointers that defines whether or not the multiselect button is active. This is often the Ctrl or Shift keys.
Select
Fires when an entity has been selected
SelectionPlugin
Adds multiselect picking support to your app.
SelectionPluginSettings
Runtime settings for the bevy_picking_selection plugin.

Functions§

multiselect_events
Unsurprising default multiselect inputs: both control and shift keys.
send_selection_events
Determines which entities have been selected or deselected, and sends Select and Deselect events corresponding to these state changes.
update_state_from_events
Update entity selection component state from pointer events.