Module bevy_mod_picking::prelude
source · Expand description
Common imports
Re-exports
pub use crate::debug::DebugPickingPlugin;
pub use crate::backends;
pub use crate::*;
Structs
- Adds picking support for
bevy_ui
- Fires when a pointer sends a pointer down event followed by a pointer up event, with the same
target
entity for both events. - Adds the [
StandardMaterial
] and [ColorMaterial
] highlighting plugins. - Fires when an entity has been deselected
- Fires when a pointer button is pressed over the
target
entity. - Fires while the
target
entity is being dragged. - Fires when a pointer is dragging the
target
entity and a pointer up event is received. - Fires when a pointer dragging the
dragged
entity enters thetarget
entity. - Fires when a pointer dragging the
dragged
entity leaves thetarget
entity. - Fires while the
dragged
entity is being dragged over thetarget
entity. - Fires when the
target
entity receives a pointer down event followed by a pointer move event. - Fires when a pointer drops the
dropped
entity onto thetarget
entity. - Adds event listening and bubbling support for event
E
. - Resource that defines the global default highlighting assets to use. This can be overridden per-entity with the
Highlight
component. - Overrides the global highlighting material for an entity. See
PickHighlight
. - A highlighting plugin, generic over any asset that might be used for rendering the different highlighting states.
- Data from an event that triggered an
On<Event>
listener, and is currently bubbling through the entity hierarchy. - Fires while a pointer is moving over the
target
entity. - 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.
- An event listener with a callback that is triggered when an
EntityEvent
bubbles past or targets this entity. - Fires when a the pointer crosses out of the bounds of the
target
entity. - Fires when a the pointer crosses into the bounds of the
target
entity. - Makes an entity highlightable with any [
Asset
]. SeeDefaultHighlightingPlugin
for details. - Tracks the current selection state of the entity.
- An optional component that overrides default picking behavior for an entity.
- Stores the common data needed for all
PointerEvent
s. - Holds a list of entities this pointer is currently interacting with, sorted from nearest to farthest.
- Component that tracks a pointer’s current
Location
. - A resource that maps each
PointerId
to their [Entity
] for easy lookups. - A component for pointers that defines whether or not the multiselect button is active. This is often the
Ctrl
orShift
keys. - Tracks the state of the pointer’s buttons in response to
InputPress
s. - Adds the raycasting picking backend to your app.
- Marks a camera that should be used for picking with [
bevy_mod_raycast
]. - Fires when an entity has been selected
- Adds multiselect picking support to your app.
- Adds picking support for
bevy_sprite
- Fires when a pointer button is released over the
target
entity.
Enums
- Used to override each highlighting state in
Highlight
. - A component that aggregates picking interaction state of this entity across all pointers.
- The button that was just pressed or released
- Identifies a unique pointer entity.
Mouse
andTouch
pointers are automatically spawned.
Traits
- An event that targets a specific entity, and should support event listeners and bubbling.
Type Definitions
- A
SystemParam
used to get immutable access the theListenerInput
for this callback. - A
SystemParam
used to get mutable access the theListenerInput
for this callback. - Marks an entity that should be pickable with [
bevy_mod_raycast
] ray casts.