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
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
objectto the scene. -
dispose(
) → void - Disposes all scene objects.
-
findByName(
String name) → StageObject? -
Finds the first object with
name, ornull. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
remove(
StageObject object) → bool -
Removes
objectand 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