Registered hook functions used within this specific Scene that are automatically deactivated.
Accessors
scene
get scene(): Scene
The managed Scene.
Returns Scene
Methods
_onInit
_onInit(): Promise<void>
Internal
Additional behaviors to perform when the Canvas is first initialized for the Scene.
Returns Promise<void>
_onDraw
_onDraw(): Promise<void>
Internal
Additional behaviors to perform after core groups and layers are drawn to the canvas.
Returns Promise<void>
_onReady
_onReady(): Promise<void>
Internal
Additional behaviors to perform after the Canvas is fully initialized for the Scene.
Returns Promise<void>
_onTearDown
_onTearDown(): Promise<void>
Internal
Additional behaviors to perform when the Scene is deactivated.
Returns Promise<void>
_registerHooks
_registerHooks(): void
Internal
Register 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)
Returns void
registerHook
registerHook(hookName, handler): void
Register additional hook functions are only used while this Scene is active and is automatically deactivated.
Parameters
hookName: string
handler: Function
Returns void
_deactivateHooks
_deactivateHooks(): void
Internal
Deactivate Hook functions that were added specifically for this Scene.
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