Expand description
Common imports
Re-exports§
pub use crate::debug::DebugPickingMode;
pub use crate::debug::DebugPickingPlugin;
pub use crate::backends;
pub use crate::*;
Structs§
- Avian
Backend - Adds the
avian3d
raycasting picking backend to your app. - Avian
Backend Settings - Runtime settings for the
AvianBackend
. - Avian
Pickable - Optional. Marks cameras and target entities that should be used in the avian picking backend.
Only needed if
AvianBackendSettings::require_markers
is set to true. - Bevy
UiBackend - Adds picking support for
bevy_ui
. - Click
- Fires when a pointer sends a pointer down event followed by a pointer up event, with the same
target
entity for both events. - Default
Highlighting Plugin - Adds the
StandardMaterial
andColorMaterial
highlighting plugins. - Deselect
- Fires when an entity has been deselected
- Down
- Fires when a pointer button is pressed over the
target
entity. - Drag
- Fires while the
target
entity is being dragged. - DragEnd
- Fires when a pointer is dragging the
target
entity and a pointer up event is received. - Drag
Enter - Fires when a pointer dragging the
dragged
entity enters thetarget
entity. - Drag
Leave - Fires when a pointer dragging the
dragged
entity leaves thetarget
entity. - Drag
Over - Fires while the
dragged
entity is being dragged over thetarget
entity. - Drag
Start - Fires when the
target
entity receives a pointer down event followed by a pointer move event. - Drop
- Fires when a pointer drops the
dropped
entity onto thetarget
entity. - Egui
Backend - Adds picking support for
bevy_egui
, by ensuring that egui blocks other entities from being picked. - Event
Listener Plugin - Adds event listening and bubbling support for event
E
. - Global
Highlight - Resource that defines the global default highlighting assets to use. This can be overridden
per-entity with the
Highlight
component. - Highlight
- Overrides the global highlighting material for an entity. See
PickHighlight
. - Highlight
Plugin - A highlighting plugin, generic over any asset that might be used for rendering the different highlighting states.
- Highlight
Plugin Settings - A resource used to enable or disable picking highlighting.
- Input
Plugin - Adds mouse and touch inputs for picking pointers to your app. This is a default input plugin, that you can replace with your own plugin as needed.
- Input
Plugin Settings - A resource used to enable and disable features of the
InputPlugin
. - Listener
Input - Data from an event that triggered an
On<Event>
listener, and is currently bubbling through the entity hierarchy. - Move
- Fires while a pointer is moving over the
target
entity. - 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.
- On
- An event listener with a callback that is triggered when an
EntityEvent
bubbles past or targets this entity. - Out
- Fires when a the pointer crosses out of the bounds of the
target
entity. - Over
- Fires when a the pointer crosses into the bounds of the
target
entity. - Pick
Highlight - Makes an entity highlightable with any
Asset
. SeeDefaultHighlightingPlugin
for details. - Pick
Selection - Tracks the current selection state of the entity.
- Pickable
- An optional component that overrides default picking behavior for an entity, allowing you to make an entity non-hoverable, or allow items below it to be hovered. See the documentation on the fields for more details.
- Pointer
- Stores the common data needed for all
PointerEvent
s. - Pointer
Interaction - Holds a list of entities this pointer is currently interacting with, sorted from nearest to farthest.
- Pointer
Location - Component that tracks a pointer’s current
Location
. - Pointer
Map - A resource that maps each
PointerId
to theirEntity
for easy lookups. - Pointer
Multiselect - A component for pointers that defines whether or not the multiselect button is active. This is
often the
Ctrl
orShift
keys. - Pointer
Press - Tracks the state of the pointer’s buttons in response to
InputPress
s. - Rapier
Backend - Adds the
rapier
raycasting picking backend to your app. - Rapier
Backend Settings - Runtime settings for the
RapierBackend
. - Rapier
Pickable - Optional. Marks cameras and target entities that should be used in the rapier picking backend.
Only needed if
RapierBackendSettings::require_markers
is set to true. - Raycast
Backend - Adds the raycasting picking backend to your app.
- Select
- Fires when an entity has been selected
- Selection
Plugin - Adds multiselect picking support to your app.
- Sprite
Backend - Adds picking support for
bevy_sprite
. - Up
- Fires when a pointer button is released over the
target
entity. - Xpbd
Backend - Adds the
xpbd_3d
raycasting picking backend to your app. - Xpbd
Backend Settings - Runtime settings for the
XpbdBackend
. - Xpbd
Pickable - Optional. Marks cameras and target entities that should be used in the xpbd picking backend.
Only needed if
XpbdBackendSettings::require_markers
is set to true.
Enums§
- Highlight
Kind - Used to override each highlighting state in
Highlight
. - Picking
Interaction - A component that aggregates picking interaction state of this entity across all pointers.
- Pointer
Button - The button that was just pressed or released
- Pointer
Id - Identifies a unique pointer entity.
Mouse
andTouch
pointers are automatically spawned.
Traits§
- Entity
Event - An event that targets a specific entity, and should support event listeners and bubbling.
Type Aliases§
- Listener
- A
SystemParam
used to get immutable access the theListenerInput
for this callback. - Listener
Mut - A
SystemParam
used to get mutable access the theListenerInput
for this callback.