pub struct OnAdd;
Expand description
Trigger emitted when a component is added to an entity.
Trait Implementations§
Source§impl Component for OnAdd
impl Component for OnAdd
Source§const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::SparseSet
const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::SparseSet
A constant indicating the storage type used for this component.
Source§fn register_component_hooks(_hooks: &mut ComponentHooks)
fn register_component_hooks(_hooks: &mut ComponentHooks)
Called when registering this component, allowing mutable access to its
ComponentHooks
.impl Event for OnAdd
Auto Trait Implementations§
impl Freeze for OnAdd
impl RefUnwindSafe for OnAdd
impl Send for OnAdd
impl Sync for OnAdd
impl Unpin for OnAdd
impl UnwindSafe for OnAdd
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more