Method Instantiate
Instantiate(SceneTemplateAsset, bool, string)
Instantiate a new scene from a template.
Declaration
public static Tuple<Scene, SceneAsset> Instantiate(SceneTemplateAsset sceneTemplate, bool loadAdditively, string newSceneOutputPath = null)
Parameters
Type | Name | Description |
---|---|---|
SceneTemplateAsset | sceneTemplate | Scene template asset containing all information to properly instantiate the scene. |
bool | loadAdditively | Is the new scene created additively in the currently loaded scene. |
string | newSceneOutputPath | If the new scene needs to be saved on disk, it will be its path. |
Returns
Type | Description |
---|---|
Tuple<Scene, SceneAsset> | It returns a tuple of the newly created scene and its matching scene asset |