Skip to main content

ENTITY

Constant ENTITY 

Source
pub const ENTITY: BuiltinDefinition;
Expand description

The current entity handle inside a system lifecycle callback.

entity identifies the entity whose component join is being processed. It is immutable and available in init, frame and done, not at module scope. Use it to access other components or schedule removal at the callback boundary.