API reference
API reference
Select your platform
No SDKs available
No versions available

QueryBuilder

QueryBuilder

class QueryBuilder
A class used to build a query tree.

Constructors

NameSummary
QueryBuilder
constructor()

Functions

NameSummary
changed
fun changed(vararg componentTypes: Int): QueryNode

Creates a query that checks if an entity has specific components that have changed in the last tick.
changedSince
fun changedSince(componentType: Int, version: <Error class: unknown class>): QueryNode

This is an advanced query and requires knowledge of the ordering of systems. It checks changes that occur within a tick and is especially useful if you want to remove one tick lag. At the same time, it introduces more complexity to manage, so please use it with caution.
childrenOf
fun childrenOf(ent: Entity, attrID: Int): QueryNode

Creates a query node that finds all entities that are children of a specific parent entity.
has
fun has(vararg componentTypes: Int): QueryNode

Creates a query that checks if an entity has specific components.
Did you find this page helpful?
Thumbs up icon
Thumbs down icon