Templates help managing instances in larger projects. The main uses for them are:
The Properties Bar shows relevant properties in the Template section. The properties that can be shown there are:
The three main cases of using templates in the Properties Bar are shown in the images below. Click the thumbnails to expand them.
To start using this feature the first thing you will need to do is set an instance to be a template. To do that, follow these steps:
That's all you need to do to set an instance to be a template.
Now let's see how to set other instances to use the template in the editor:
After doing that you will notice that some of the properties in the Properties bar are highlighted. This indicates that the instance is taking that value from the source template.
From now on, when the template is modified, all replicas using it will reflect the changes. If a replica is modified individually, the affected property will stop taking the value from the template and instead will take the value from the replica itself. To indicate this, the property will be highlighted in a different color.
When a replica's property is modified and so starts using its own value, it's possible to individually set it back to use the template value by right clicking on the property name.
The Create Object system action has an additional Template name parameter. When specified the new instance being created will be a clone of the template instance, rather than an arbitrary one.
As well as using the properties of the template instance, the new instance will also use the hierarchy from the template if one exists. This means that it is possible to create different hierarchies in the editor that use the same type of instance as a root, while also being able to choose which one to create at runtime.
If the provided template name is not available, the Create Object action will behave as if the parameter wasn't provided (using an arbitrary instance instead).