Class PrefabTemplateNode

Class Hierarchy

A prefab template node contains information that is required to create node instances: the metaclass of the node, the (initial) property values of the node, information about the bindings and node components of the node, and the list of of child nodes.

Typically prefab templates nodes are defined in Kanzi Studio and loaded from a kzb file as PrefabTemplate resources. A Prefab template contains a tree of prefab template nodes and can be used to instantiate a tree of nodes.

Note that nodes can be created also directly by using the create function in each Node class. You don't necessarily need to use PrefabTemplate or PrefabTemplateNode instances.

A prefab template node can represent either a normal node with a metaclass, or a placeholder that replaces itself with the root of another prefab template when instantiated. Prefab template nodes and their children should always form a simple tree structure. Creating a cycle with prefab placeholders is not allowed.

Inherits properties and message types from PrefabTemplateNodeMetadata.