docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Interface IInputPortBuilder

    Interface for defining an input port.

    Inherited Members
    IInputBasePortBuilder<IInputPortBuilder>.Delayed()
    IPortBuilder<IInputPortBuilder>.Build()
    IPortBuilder<IInputPortBuilder>.WithDisplayName(string)
    IPortBuilder<IInputPortBuilder>.WithConnectorUI(PortConnectorUI)
    Namespace: Unity.GraphToolkit.Editor
    Assembly: Unity.GraphToolkit.Editor.dll
    Syntax
    public interface IInputPortBuilder : IInputBasePortBuilder<IInputPortBuilder>, IPortBuilder<IInputPortBuilder>

    Methods

    WithDataType(Type)

    Configures the data type of the input port.

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

    The data type of the port.

    Returns
    Type Description
    ITypedInputPortBuilder

    An input port builder that supports typed values.

    WithDataType<TData>()

    Configures the generic data type TData of the input port.

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

    An input port builder with the specified data type.

    Type Parameters
    Name Description
    TData

    The data type of the input 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)