docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Interface IInputPortBuilder<TData>

    Interface for defining an input port that uses a specific generic data type.

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

    The data type of the input port.

    Remarks

    Use this interface to assign a typed default value to the port.

    Methods

    WithDefaultValue(TData)

    Configures a default value of type TData to the input port.

    Declaration
    IInputPortBuilder<TData> WithDefaultValue(TData defaultValue)
    Parameters
    Type Name Description
    TData defaultValue

    The default value of type TData.

    Returns
    Type Description
    IInputPortBuilder<TData>

    An input port builder configured with the default value.

    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)