Method InstantiateScene
InstantiateScene(int, ICodeLogger)
Creates an instance of the scene specified by the scene index.
Declaration
public virtual Task<bool> InstantiateScene(int sceneIndex, ICodeLogger logger = null)
Parameters
| Type | Name | Description |
|---|---|---|
| int | sceneIndex | Index of the scene to be instantiated |
| ICodeLogger | logger | Used for message reporting |
Returns
| Type | Description |
|---|---|
| Task<bool> | True if instantiation was successful. |
InstantiateScene(int, GameObjectInstantiator)
Creates an instance of the scene specified by the scene index.
Declaration
protected Task<bool> InstantiateScene(int sceneIndex, GameObjectInstantiator instantiator)
Parameters
| Type | Name | Description |
|---|---|---|
| int | sceneIndex | Index of the scene to be instantiated |
| GameObjectInstantiator | instantiator | Receives scene construction calls |
Returns
| Type | Description |
|---|---|
| Task<bool> | True if instantiation was successful. |