init(where:)
Creates a query that returns all entities in a scene that match specific criteria.
Declaration
init(where predicate: QueryPredicate<Entity>)Parameters
- predicate:
The criteria that specifies the entities to return.
Creates a query that returns all entities in a scene that match specific criteria.
init(where predicate: QueryPredicate<Entity>)The criteria that specifies the entities to return.