Skip to content
Konjure / spatial intelligence

entity

← Builtin reference

The current entity handle inside a system lifecycle callback.

Signature

entity: Entity

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.

Examples

Inspect the current entity

Step once to see the two entities in creation order.

Press Step once to reach the checked result.

Tick 0 · 0.00 sThis device
main.kj⌘ / Ctrl + Enter
Loading the language runtime…
Output 0
No output.
Expected output
entity(1)
entity(2)

Rust definition

Machine supplies a Value::Entity for the currently executing system join.

See also