Skip to main content

Component

Derive Macro Component 

Source
#[derive(Component)]
Expand description

Derive macro that implements the Component trait for a struct.

This enables the type to be stored in ECS sparse-set component storage, keyed by TypeId.