SceneTemplateAsset
An Asset that stores everything required to instantiate a new Scene from a templated Scene.
Read time 4 minutesLast updated 11 days ago
Definition
- Type: Class
- Namespace: UnityEditor.SceneTemplate
- Assembly: UnityEditor
- Inherits from: ScriptableObject
[HelpURL("scene-templates")]public class SceneTemplateAsset : ScriptableObject
Fields
Value | Description |
|---|---|
| addToDefaults | Use this field to add this template to the list of default templates in the New scene dialog. |
| badge | The Scene template's badge. |
| dependencies | Lists Scene dependencies, and specifies whether to clone or reference each one. |
| description | A description of the Scene template. This description can be long. In the Unity editor, it appears on multiple lines. |
| preview | The Scene template's preview image or icon. |
| templateName | A user-defined name for the Scene template Asset. By default, this is the template's file name. |
| templatePipeline | A script that derives from ISceneTemplatePipeline. It allows you to execute custom code when a template is instantiated. |
| templateScene | The Scene that is copied when the Scene template is instantiated. |
Properties
Property | Description |
|---|---|
| isValid | Specifies whether the Scene template is valid. Invalid templates do not appear in the New Scene dialog. |
Inheritance
Operators
Operator | Description |
|---|---|
| operator == | Compares two object references to see if they refer to the same object. |
| bool | Determines whether the object exists. |
| operator != | Compares if two objects refer to a different object. |