bevy_ecs::component

Type Alias ComponentHook

Source
pub type ComponentHook = for<'w> fn(_: DeferredWorld<'w>, _: Entity, _: ComponentId);
Expand description

The type used for Component lifecycle hooks such as on_add, on_insert or on_remove