The SceneManager is constructed by passing a reference to the active Scene document.
Register additional hook functions are only used while this Scene is active and is automatically deactivated.
Protected_ProtectedDeactivate Hook functions that were added specifically for this Scene.
Protected_ProtectedConfigure which level of the Scene should be initially viewed for a managed Scene. This initial level could be user-specific. This method may be called when the Scene is not viewed.
Protected_ProtectedConfigure which levels of the Scene are available to the current user. This method may be called when the Scene is not viewed.
The levels that are available to the current user by default.
Return a Set of Level documents to override the default token-ownership logic, or return nothing to fall back to the default behavior.
Protected_ProtectedLoad additional texture resources for the Scene/Level. This method may be called when the Scene is not viewed.
Destination record to register textures into.
Additional sources to load.
The Level to load textures for.
Protected_ProtectedAdditional behaviors to perform after core groups and layers are drawn to the canvas.
Protected_ProtectedAdditional behaviors to perform when the Canvas is first initialized for the Scene.
Protected_ProtectedAdditional behaviors to perform after the Canvas is fully initialized for the Scene.
Protected_ProtectedAdditional behaviors to perform when the Scene is deactivated.
Options which configure how the canvas is deconstructed.
Protected_ProtectedRegister additional hook functions are only used while this Scene is active and is automatically deactivated. Hooks should be registered in this function by calling this._registerHook(hookName, handler)
A framework for imbuing special scripted behaviors into a single specific Scene. Managed scenes are registered in CONFIG.Canvas.managedScenes.
The SceneManager instance is called at various points in the Scene rendering life-cycle.
This also provides a framework for registering additional hook events which are required only for the life-cycle of the managed Scene.
Example: Registering a custom SceneManager