One Logo Pool Ball
RealityFoundation · IOS API REFERENCE

SceneUpdateContext

struct · iOS 15.0+ · SDK 27.1

struct SceneUpdateContext

An 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.

Members (5)

get · iOS 15.0+

scene

TypeScript
get scene(): Scene
Swift declaration
var scene: Scene

The updating scene.

set · iOS 15.0+

scene

TypeScript
set scene(value: Scene)
Swift declaration
var scene: Scene

The updating scene.

method · iOS 18.0+

entities

TypeScript
entities(query: EntityQuery, condition: SystemUpdateCondition): QueryResult<Entity>
Swift declaration
func 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 · iOS 15.0+

deltaTime

TypeScript
get deltaTime(): number
Swift declaration
var deltaTime: TimeInterval

The number of seconds elapsed since the last update.

set · iOS 15.0+

deltaTime

TypeScript
set deltaTime(value: number)
Swift declaration
var deltaTime: TimeInterval

The number of seconds elapsed since the last update.

Skipped declarations

No declarations were skipped in this snapshot.

All RealityFoundation types →