docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    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 graphReference, Entity target, int triggerIndex)
    Parameters
    Type Name Description
    GraphReference graphReference

    The node holding the graph reference state, just used to enforce the type of the node state

    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

    Implements
    IGraphInstance.RunNestedGraph(in GraphReference, Entity, int)
    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)