docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Interface IOutputPortBuilder

    Interface for defining an output port.

    Inherited Members
    IPortBuilder<IOutputPortBuilder>.Build()
    IPortBuilder<IOutputPortBuilder>.WithDisplayName(string)
    IPortBuilder<IOutputPortBuilder>.WithConnectorUI(PortConnectorUI)
    Namespace: Unity.GraphToolkit.Editor
    Assembly: Unity.GraphToolkit.Editor.dll
    Syntax
    public interface IOutputPortBuilder : IPortBuilder<IOutputPortBuilder>
    Remarks

    Use this interface to create an output port before you assign its data type. To assign a data type, call WithDataType(Type) or WithDataType<TData>().

    Methods

    WithDataType(Type)

    Configures the data type of the output port.

    Declaration
    IOutputPortBuilder WithDataType(Type portType)
    Parameters
    Type Name Description
    Type portType

    The data type of the port.

    Returns
    Type Description
    IOutputPortBuilder

    An output port builder with the specified data type.

    WithDataType<TData>()

    Configures the generic data type TData of the output port.

    Declaration
    IOutputPortBuilder<TData> WithDataType<TData>()
    Returns
    Type Description
    IOutputPortBuilder<TData>

    An output port builder with the specified data type.

    Type Parameters
    Name Description
    TData

    The data type of the output port.

    In This Article
    Back to top
    Copyright © 2025 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)