Version: 2022.2
LanguageEnglish
  • C#

SceneTemplateService.CreateTemplateFromScene

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Declaration

public static SceneTemplate.SceneTemplateAsset CreateTemplateFromScene(SceneAsset sourceSceneAsset, string sceneTemplatePath);

Parameters

sourceSceneAsset The Scene Asset that serves as the template.
sceneTemplatePath The path to the new Scene template asset.

Returns

SceneTemplateAsset A new Scene template Asset instance.

Description

Creates a new Scene template bound to a specific Scene. All of the template Scene's dependencies are extracted and set to be referenced.