Phaser API Documentation

  Version: 
<private> createSceneFromFunction(key, scene)

Description:

Creates and initializes a Scene from a function.

Parameters:

name type description
key string

The key of the Scene.

scene function

The function to create the Scene from.

Returns:
Description:

The created Scene.

Type:
Since: 3.0.0