Description

Pause the scene. method "render" is not called however, but the scene is refreshed (except the event "canvas: render")

Usage

Parameters

  • val {Boolean} optional

    (optional) The scene is paused if the value is "true". Put "false" to turn pause off. If the parameter is not specified, the current value is returned.

Returns

Boolean|Scene

Example

In "ready" method of the scene :

    this.pause(true); // return this Scene Class
    console.log(this.pause()); // return true

Discussion