Instantiating Prototypes

How you create prototype instances depend on what kind of prototype you want to instance.

Entity Prototypes

To create an instance of an entity prototype, you can simply drag an drop the entity from the Asset Browser into the Entity Tree or the Scene Tab:

You can also use the context menu in the Entity Tree to replace any entity with an instantiated asset:

At runtime, you can create instances of an entity asset by spawning them from the Entity Graph:

Subgraph Prototypes

You can add an instance of a Subgraph by dropping the .graph asset from the Asset Browser into the Graph editor.

Note that the dropped graph must be of the same type as the graph you are editing. I.e. Creation Graph Subgraphs can only be used in Creation Graphs, Entity Graph Subgraphs can only be used in Entity Graphs.

Another way of creating an instance of a Subgraph is to create an empty Subgraph node in the Graph and then picking a prototype for it in the Properties view:

Creation Graph Prototypes

The Render Component and other components that make use of Creation Graphs typically let you specify the prototype to use for the Creation Graph in the Properties View:

The Edit button in this view lets you open the specific Creation Graph instance used by this component for editing.


Simon Renger Simon Renger