# SceneTemplateService

> A utility class that manages SceneTemplateAsset instantiation.

## Definition

* **Type:** Class
* **Namespace:** [UnityEditor.SceneTemplate](/engine/6000.7/script-reference/unityeditor/scenetemplate.md)
* **Assembly:** UnityEditor

```csharp
public static class SceneTemplateService
```

## Static Methods

| Method                                                                                                                               | Description                                                                                                                              |
| ------------------------------------------------------------------------------------------------------------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------- |
| [CreateSceneTemplate](/engine/6000.7/script-reference/unityeditor/scenetemplate/scenetemplateservice/createscenetemplate.md)         | Creates a new Scene template at a specific path. The template is not bound to a Scene.                                                   |
| [CreateTemplateFromScene](/engine/6000.7/script-reference/unityeditor/scenetemplate/scenetemplateservice/createtemplatefromscene.md) | 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](/engine/6000.7/script-reference/unityeditor/scenetemplate/scenetemplateservice/instantiate.md)                         | Instantiates a new Scene from a template.                                                                                                |

## Static Events

| Member                                                                                                                                           | Description                                           |
| ------------------------------------------------------------------------------------------------------------------------------------------------ | ----------------------------------------------------- |
| [newSceneTemplateInstantiated](/engine/6000.7/script-reference/unityeditor/scenetemplate/scenetemplateservice/newscenetemplateinstantiated.md)   | Events fired after a Scene template is instantiated.  |
| [newSceneTemplateInstantiating](/engine/6000.7/script-reference/unityeditor/scenetemplate/scenetemplateservice/newscenetemplateinstantiating.md) | Events fired before a Scene template is instantiated. |

## Delegates

| Delegate                                                                                                                                                    | Description                                              |
| ----------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------- |
| [SceneTemplateService.NewTemplateInstantiated](/engine/6000.7/script-reference/unityeditor/scenetemplate/scenetemplateservice/newtemplateinstantiated.md)   | An event called after a Scene template is instantiated.  |
| [SceneTemplateService.NewTemplateInstantiating](/engine/6000.7/script-reference/unityeditor/scenetemplate/scenetemplateservice/newtemplateinstantiating.md) | An event called before a Scene template is instantiated. |
