Trait bevy_ecs::component::Component[][src]

pub trait Component: Send + Sync + 'static { }

A component is data associated with an Entity. Each entity can have multiple different types of components, but only one of them per type.

Any type that is Send + Sync + 'static automatically implements Component.

Components are added with new entities using Commands::spawn, or to existing entities with Commands::insert, or their World equivalents.

Components can be accessed in systems by using a Query as one of the arguments.

Components can be grouped together into a Bundle.

Implementors

impl<T: Send + Sync + 'static> Component for T[src]

Loading content...