SceneManager

object SceneManager : AutoCloseable


Manager for all SpatialComposeScenes that are created when the SceneManager is running.

Enables finding all semantic roots in a spatial scene graph.

Summary

Public functions

open Unit

Alias to SceneManager.stop To implement the AutoCloseable interface.

List<SubspaceSemanticsInfo>

Returns all root subspace semantics nodes of all registered scenes.

Int
Unit

Start keeping track of the scenes that are created.

Unit

Stop tracking the created scenes and clear the set of scenes that SceneManager was keeping track of.

Public functions

close

Added in 1.0.0-alpha02
open fun close(): Unit

Alias to SceneManager.stop To implement the AutoCloseable interface.

getAllRootSubspaceSemanticsNodes

Added in 1.0.0-alpha02
fun getAllRootSubspaceSemanticsNodes(): List<SubspaceSemanticsInfo>

Returns all root subspace semantics nodes of all registered scenes.

SceneManager.start should be called before attempting to get the root subspace semantics nodes. This will throw an IllegalStateException if the SceneManager is not in a running state.

getSceneCount

Added in 1.0.0-alpha02
fun getSceneCount(): Int

start

Added in 1.0.0-alpha02
fun start(): Unit

Start keeping track of the scenes that are created. Scenes created before SceneManager is running will not be tracked.

stop

Added in 1.0.0-alpha02
fun stop(): Unit

Stop tracking the created scenes and clear the set of scenes that SceneManager was keeping track of.