<Template>
A template contains a list of objects, layers and/or scripts that will be all be added to the scene/project when the template is activated.
Attribute | Description | Type |
name | [Required] A unique name for this template | String |
Child tags | Description | Count |
<Layer> | New layer | |
<Meta> | Meta information | |
<Object> | Objects | |
<Script> | Import script |
<Layer>
Adds a layer to the scene.
Remarks: New layers are always added on top of the scene unless bottom is true.
Attribute | Description | Type |
name | [Required] Layer name | String |
bottom | Add layer at bottom of the scene | Boolean |
exclusive | Don't add layer if it already exists | Boolean |
global | Make global layer | Boolean |
locked | Lock layer | Boolean |
Child tags | Description | Count |
<Object> | Objects in this layer |
<Script>
Script to be imported to the project.
Attribute | Description | Type |
name | [Required] Name of script resource | String |
Example
<Template name="My template">
<Image name="My image" texture="My texture" />
<Layer name="Background layer" bottom="true" >
<Image name="Background" texture="My background" />
</Layer>
</Template>