Entity handling types.
An entity exclusively owns zero or more component instances, all of different types, and can dynamically acquire or lose them over its lifetime.
empty entity: Entity with zero components.
pending entity: Entity reserved, but not flushed yet (see
Entities::flush docs for reference).
reserved entity: same as pending entity.
invalid entity: pending entity flushed with invalid (see
Entities::flush_as_invalid docs for reference).
Entity to learn more.
Operations involving entities and their components are performed either from a system by submitting commands,
or from the outside (or from an exclusive system) by directly using
|Spawn an entity with components|
|Spawn an entity without components|
|Despawn an entity|
|Insert a component, bundle, or tuple of components and bundles to an entity|
|Remove a component, bundle, or tuple of components and bundles from an entity|
World’s internal metadata store on all of its entities.
- Lightweight identifier of an entity.
- A location of an entity in an archetype.
- Operation to map all contained
Entityfields in a type to new values.