Namespace: Scenes

Phaser. Scenes

Classes

SceneManager
ScenePlugin
Systems

Namespaces

Events
Settings

Members


<static, readonly> CREATING :integer

Scene state.

Type:
  • integer
Since: 3.0.0
Source: src/scene/const.js (Line 55)

<static, readonly> DESTROYED :integer

Scene state.

Type:
  • integer
Since: 3.0.0
Source: src/scene/const.js (Line 105)

<static, readonly> INIT :integer

Scene state.

Type:
  • integer
Since: 3.0.0
Source: src/scene/const.js (Line 25)

<static, readonly> LOADING :integer

Scene state.

Type:
  • integer
Since: 3.0.0
Source: src/scene/const.js (Line 45)

<static, readonly> PAUSED :integer

Scene state.

Type:
  • integer
Since: 3.0.0
Source: src/scene/const.js (Line 75)

<static, readonly> PENDING :integer

Scene state.

Type:
  • integer
Since: 3.0.0
Source: src/scene/const.js (Line 15)

<static, readonly> RUNNING :integer

Scene state.

Type:
  • integer
Since: 3.0.0
Source: src/scene/const.js (Line 65)

<static, readonly> SHUTDOWN :integer

Scene state.

Type:
  • integer
Since: 3.0.0
Source: src/scene/const.js (Line 95)

<static, readonly> SLEEPING :integer

Scene state.

Type:
  • integer
Since: 3.0.0
Source: src/scene/const.js (Line 85)

<static, readonly> START :integer

Scene state.

Type:
  • integer
Since: 3.0.0
Source: src/scene/const.js (Line 35)

Methods


<static> GetPhysicsPlugins(sys)

Builds an array of which physics plugins should be activated for the given Scene.

Parameters:
Name Type Description
sys Phaser.Scenes.Systems

The scene system to get the physics systems of.

Since: 3.0.0
Source: src/scene/GetPhysicsPlugins.js (Line 10)
Returns:

An array of Physics systems to start for this Scene.

Type
array

<static> GetScenePlugins(sys)

Builds an array of which plugins (not including physics plugins) should be activated for the given Scene.

Parameters:
Name Type Description
sys Phaser.Scenes.Systems

The Scene Systems object to check for plugins.

Since: 3.0.0
Source: src/scene/GetScenePlugins.js (Line 9)
Returns:

An array of all plugins which should be activated, either the default ones or the ones configured in the Scene Systems object.

Type
array