Instantiate(SceneTemplateAsset, bool, string)
Instantiates a new Scene from a template.
Read time 1 minuteLast updated 20 days ago
Definition
- Type: Method
- Namespace: UnityEditor.SceneTemplate
- Assembly: UnityEditor
public static InstantiationResult Instantiate(SceneTemplateAsset sceneTemplate, bool loadAdditively, string newSceneOutputPath = null)
Parameters
A Scene template Asset that contains the information required to instantiate the Scene.
Specifies whether the new Scene is created additively in the currently loaded Scene.
The path to the new Scene created from the template. This is set only when the SceneTemplateAsset has cloneable dependencies, because in that case, the new Scene must be be saved on disk.
Returns
Type | Description |
|---|---|
| InstantiationResult | The new Scene and its SceneTemplateAsset counterpart. |