entities(matching:updatingSystemWhen:)
Returns all entities which pass the query predicate of the query.
Declaration
func entities(matching query: EntityQuery, updatingSystemWhen condition: SystemUpdateCondition) -> QueryResult<Entity>Parameters
- query:
The query identifying which entities you want to fetch.
- condition:
How often the System is updated (if the query is not empty).
Mentioned in
Discussion
Calling this function can increase the rate at which RealityKit calls the update(context:) method. If condition is not met for the current update, this method returns an empty result.