The director library provides scene manageement, with methods to load, initialize, transition to, and destroy scenes.
| director | The director library provides scene manageement, with methods to load, initialize, transition to, and destroy scenes. |
| Functions | |
| director. | Creates an empty scene. |
| director. | Loads a scene but doesn’t display it yet. |
| director. | Transitions to a scene. |
Creates an empty scene. This method should be called from a scene module before other initialization. See the Scene Template.
none
An empty scene.
function director.loadScene( file, param1, param2 )
Loads a scene but doesn’t display it yet. The createScene method will be called on the scene. Any textures created in this method call are loaded in a background thread.
| file | The name of the file to load. |
The created scene.
Loads a scene but doesn’t display it yet.
function director.loadScene( file, param1, param2 )
Transitions to a scene.
function director.gotoScene( sceneName, params )