Returns entity identities that have the selected type or implement the selected trait.
Signature
C means a concrete type or trait selector. The returned entity handles are ordered by creation and are a snapshot value; later lifecycle changes do not mutate the returned list.
Returns
Examples
Query matching entities
The selector makes the query function value concrete.
main.kj
Loading…Drag to orbit · select to inspect
0 entities
Scene controls
Results
Loading the language runtime…
Output 0
No output.
State
Compile source to inspect its values.
TraceNo execution yet
- Executed source spans appear here.
Expected output
1
Rust definition
Rust interpreter builtin dispatch; C is a checked concrete type or trait selector.
View Rust documentation →Support: runtime