SceneTemplateService
A utility class that manages SceneTemplateAsset instantiation.
Read time 1 minuteLast updated 13 days ago
Definition
- Type: Class
- Namespace: UnityEditor.SceneTemplate
- Assembly: UnityEditor
public static class SceneTemplateService
Static Methods
Method | Description |
|---|---|
| CreateSceneTemplate | Creates a new Scene template at a specific path. The template is not bound to a Scene. |
| CreateTemplateFromScene | Creates a new Scene template bound to a specific Scene. All of the template Scene's dependencies are extracted and set to be referenced. |
| Instantiate | Instantiates a new Scene from a template. |
Static Events
Member | Description |
|---|---|
| newSceneTemplateInstantiated | Events fired after a Scene template is instantiated. |
| newSceneTemplateInstantiating | Events fired before a Scene template is instantiated. |
Delegates
Delegate | Description |
|---|---|
| SceneTemplateService.NewTemplateInstantiated | An event called after a Scene template is instantiated. |
| SceneTemplateService.NewTemplateInstantiating | An event called before a Scene template is instantiated. |