docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method AddParameter

    AddParameter(GraphDescriptor, string, string, bool)

    Add a parameter in the graph

    Declaration
    public static ParameterDescriptor AddParameter(GraphDescriptor desc, string parameterName, string parameterType, bool isExposed = true)
    Parameters
    Type Name Description
    GraphDescriptor desc

    The GraphDescriptor

    string parameterName

    the name of the Parameter to add

    string parameterType

    the type of Parameter to add

    bool isExposed

    if set to true [is exposed].

    Returns
    Type Description
    ParameterDescriptor

    Returns a new ParameterDescriptor

    AddParameter(GraphDescriptor, Type, string)

    Add a parameter in the graph.

    Declaration
    public static ParameterDescriptor AddParameter(GraphDescriptor desc, Type propertyType, string paramName)
    Parameters
    Type Name Description
    GraphDescriptor desc

    The GraphDescriptor

    Type propertyType

    Type of the property.

    string paramName

    The name of the newly created parameter

    Returns
    Type Description
    ParameterDescriptor

    Returns a new ParameterDescriptor

    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)