docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method OnPortAdded

    OnPortAdded(string, Type, string, PortDirection, FieldExtra, ref IPortType)

    PortAddition event recieved from the editor during edit mode if ExpandablePorts attribute is set. By default this function will accept all ports.

    Declaration
    public override bool OnPortAdded(string entryName, Type portType, string tooltip, PortDirection direction, FieldExtra extra, ref IPortType portReference)
    Parameters
    Type Name Description
    string entryName

    The name of the new port

    Type portType

    Type of the port object

    string tooltip

    The tooltip.

    PortDirection direction

    The direction.

    FieldExtra extra

    The extra.

    IPortType portReference

    The port reference.

    Returns
    Type Description
    bool

    Returns true if the port is accepted

    Overrides
    NodeExpandable.OnPortAdded(string, Type, string, PortDirection, FieldExtra, ref IPortType)
    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)