docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method SetPortValue

    SetPortValue<T>(PortDescriptor, T)

    Set the default value of a port in the graph

    Declaration
    public static bool SetPortValue<T>(PortDescriptor portDesc, T value)
    Parameters
    Type Name Description
    PortDescriptor portDesc

    The port to change default value

    T value

    The value to set

    Returns
    Type Description
    bool

    Returns true if successful

    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)