Method RunNestedGraph
RunNestedGraph(in GraphReference, Entity, int)
Runs the nested graph immediately on the specified entity. If the nested graph activates a GraphTriggerOutput, it will be interrupted, resume the parent graph, then go back to the nested graph and so on
Declaration
public Execution RunNestedGraph(in GraphReference _, Entity target, int triggerIndex)
Parameters
Type | Name | Description |
---|---|---|
GraphReference | _ | |
Entity | target | The entity holding the referenced graph |
int | triggerIndex | The index of the activated trigger in the graph reference node input list, it will be used to index the referenced graph definition's input trigger list |
Returns
Type | Description |
---|---|
Execution | Execution.Running if the nested graph has active coroutines, done otherwise |