SceneManagerOptions object passed to initialize the scene manager
ID of the active scene
Scene to animate to
Names of the animations that can be used
How long the animation should run for
Whether or not the animation is running
Time when the animation started
Canvas element to draw the scenes on
Canvas rendering context of the canvas
Whether or not the scene that the animation is coming from had lighting enabled
Height of the canvas (Will resize the canvas to this height). By default is the width of the canvas element
Animation to use when transitioning between scenes
Scenes in the scene manager
Whether or not to start the scene manager when it is initialized (true by default)
Whether or not the scene that the animation is going to had lighting enabled
Width of the canvas (Will resize the canvas to this width). By default is the width of the canvas element
Adds a sceen to the scene manager
Scene to add to the scene manager
Smoothly animates between scenes (unless lighting is enabled, in which case lighting is temporarily disabled as the animation is running)
Name of the transition to use
Scene to transition to
Time (in ms) to run the transition for
Changes the active scene, with no transition
Scene to change to
Generated using TypeDoc
Classdesc
SceneManager class, used for managing scenes and to transition between scenes
Example
Example