Phaser API Documentation

  Version: 

Member of: Phaser.Types.Scenes

SceneCreateCallback(data)

Description:

Can be defined on your own Scenes. Use it to create your game objects. This method is called by the Scene Manager when the scene starts, after init() and preload(). If the LoaderPlugin started after preload(), then this method is called only after loading is complete.

Parameters:

name type description
data object

Any data passed via ScenePlugin.add() or ScenePlugin.start(). Same as Scene.settings.data.

Type:
function
Since: 3.0.0