public static SceneTemplate.InstantiationResult Instantiate (SceneTemplate.SceneTemplateAsset sceneTemplate, bool loadAdditively, string newSceneOutputPath);

Parameters

sceneTemplateA Scene template Asset that contains the information required to instantiate the Scene.
loadAdditivelySpecifies whether the new Scene is created additively in the currently loaded Scene.
newSceneOutputPathThe 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

InstantiationResult The new Scene and its SceneTemplateAsset counterpart.

Description

Instantiates a new Scene from a template.