Creates and initializes a Scene from a function.
name | type | description |
---|---|---|
key | string |
The key of the Scene. |
scene | function |
The function to create the Scene from. |
The created Scene.