scene
TypeScriptget scene(): SceneSwift declarationvar scene: SceneThe updating scene.
struct · iOS 15.0+ · SDK 27.1
struct SceneUpdateContextAn object that contains information about the scene to update. RealityKit uses a ``SceneUpdateContext`` to pass information to a ``System`` about the scene it’s currently updating.
get scene(): SceneSwift declarationvar scene: SceneThe updating scene.
set scene(value: Scene)Swift declarationvar scene: SceneThe updating scene.
entities(query: EntityQuery, condition: SystemUpdateCondition): QueryResult<Entity>Swift declarationfunc entities(matching query: EntityQuery, updatingSystemWhen condition: SystemUpdateCondition) -> QueryResult<Entity>Returns all entities which pass the query predicate of the query. Calling this function can increase the rate at which RealityKit calls the ``System/update(context:)-69f86`` method. If `condition` is not met for the current update, this method returns an empty result. - Parameters: - query: The query identifying which entities you want to fetch. - condition: How often the ``System`` is updated (if the query is not empty).
get deltaTime(): numberSwift declarationvar deltaTime: TimeIntervalThe number of seconds elapsed since the last update.
set deltaTime(value: number)Swift declarationvar deltaTime: TimeIntervalThe number of seconds elapsed since the last update.
No declarations were skipped in this snapshot.