docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method GetPortValue

    GetPortValue<T>(PortDescriptor, out T)

    Get the default value of a port in the graph

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

    The port to change default value

    T value

    Default value of the port

    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)