Version: 2021.1

SceneTemplateService.CreateTemplateFromScene

切换到手册
public static SceneTemplate.SceneTemplateAsset CreateTemplateFromScene (SceneAsset sourceSceneAsset, string sceneTemplatePath);

参数

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

返回

SceneTemplateAsset A new Scene template Asset instance.

描述

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