docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method AddToPortList

    AddToPortList<T>(GraphDescriptor, NodeDescriptor, IPortEditor, string, T)

    Add a new Port in the PortList

    Declaration
    public static PortDescriptor AddToPortList<T>(GraphDescriptor desc, NodeDescriptor node, IPortEditor listPort, string name, T portRef)
    Parameters
    Type Name Description
    GraphDescriptor desc

    The GraphDescriptor

    NodeDescriptor node

    The node on which to add a Port to the portlist

    IPortEditor listPort

    The node editor IPortDescription on which to add

    string name

    Name of the Port to add

    T portRef

    The instance of the Port to add

    Returns
    Type Description
    PortDescriptor

    Returns a new PortDescriptor

    Type Parameters
    Name Description
    T

    AddToPortList<T>(GraphDescriptor, NodeDescriptor, string, T)

    Add a new Port in the PortList

    Declaration
    public static PortDescriptor AddToPortList<T>(GraphDescriptor desc, NodeDescriptor node, string listPortName, T newPort)
    Parameters
    Type Name Description
    GraphDescriptor desc

    The GraphDescriptor

    NodeDescriptor node

    The node on which to add a Port to the portlist

    string listPortName

    Name of the Port to add

    T newPort

    The instance of the Port to add

    Returns
    Type Description
    PortDescriptor

    Returns a new PortDescriptor

    Type Parameters
    Name Description
    T

    AddToPortList<T>(GraphDescriptor, NodeDescriptor, string)

    Add a new Port in the PortList

    Declaration
    public static PortDescriptor AddToPortList<T>(GraphDescriptor desc, NodeDescriptor node, string listPortName)
    Parameters
    Type Name Description
    GraphDescriptor desc

    The GraphDescriptor

    NodeDescriptor node

    The node on which to add a Port to the portlist

    string listPortName

    Name of the Port to add

    Returns
    Type Description
    PortDescriptor

    Returns a new PortDescriptor

    Type Parameters
    Name Description
    T
    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)