StageScene class final

Component-friendly runtime scene.

StageScene owns scene objects and drives their update lifecycle. It is intentionally renderer-agnostic and physics-agnostic; specialized components can connect objects to Jolt, Filament, input, animation, or app logic.

Constructors

StageScene()

Properties

hashCode int
The hash code for this object.
no setterinherited
objects List<StageObject>
Objects currently owned by the scene.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

add<T extends StageObject>(T object) → T
Adds object to the scene.
dispose() → void
Disposes all scene objects.
findByName(String name) StageObject?
Finds the first object with name, or null.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
remove(StageObject object) bool
Removes object and disposes its components.
toString() String
A string representation of this object.
inherited
update(double deltaSeconds) → void
Updates all scene objects in insertion order.

Operators

operator ==(Object other) bool
The equality operator.
inherited