docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method CreateGraphComponent

    CreateGraphComponent(GameObject, SystemGraphObject, GraphDescriptor, string, HandlerEnable)

    Create a SystemGraphComponent and attach it to an object.

    Declaration
    public static SystemGraphComponent CreateGraphComponent(GameObject go, SystemGraphObject obj = null, SystemGraphManager.GraphDescriptor parentDesc = null, string subGraphPath = "", SystemGraphComponent.PendingGraphDescriptor.HandlerEnable enableHandler = null)
    Parameters
    Type Name Description
    GameObject go

    Game object to attach the component to.

    SystemGraphObject obj

    Asset to be used by the SystemGraphComponent.

    SystemGraphManager.GraphDescriptor parentDesc

    Description of the parent if this graph is a subgraph.

    string subGraphPath

    Path of the subgraph

    SystemGraphComponent.PendingGraphDescriptor.HandlerEnable enableHandler

    The enable handler.

    Returns
    Type Description
    SystemGraphComponent

    A new SystemgraphComponent.

    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)