Scene class abstract
For now, this class just holds the entities that have been loaded (though not necessarily visible in the Filament Scene).
- Implementers
Constructors
- Scene()
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
onLoad
→ Stream<
ThermionEntity> -
A Stream containing every ThermionEntity added to the scene (i.e. via
loadGlb
,loadGltf
oraddLight
). This is provided for convenience so you can set listeners in front-end widgets that can respond to entity loads without manually passing around the ThermionEntity returned from those methods.no setter -
onUnload
→ Stream<
ThermionEntity> -
A Stream containing every ThermionEntity removed from the scene (i.e. via
removeEntity
,clearEntities
,removeLight
orclearLights
).no setter -
onUpdated
→ Stream<
bool> -
A Stream updated whenever an entity is added/removed from the scene.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- selected ↔ ThermionEntity?
-
The last entity clicked/tapped in the viewport (internally, the result of calling pick);
getter/setter pair
Methods
-
listEntities(
) → Iterable< ThermionEntity> - Lists all entities currently loaded (not necessarily active in the scene). Does not account for instances.
-
listLights(
) → Iterable< ThermionEntity> - Lists all light entities currently loaded (not necessarily active in the scene). Does not account for instances.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
registerEntity(
ThermionEntity entity) → void -
select(
ThermionEntity entity) → void - Attach the gizmo to the specified entity.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited