SceneTemplateService.CreateTemplateFromScene

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

Parameters

sourceSceneAssetThe Scene Asset that serves as the template.
sceneTemplatePathThe 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.