docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method Add

    Add(string, VariablesGroupAsset)

    Add a global variable group to the source.

    Declaration
    public void Add(string name, VariablesGroupAsset group)
    Parameters
    Type Name Description
    string name

    The name of the group to add.

    VariablesGroupAsset group

    The group to add.

    Exceptions
    Type Condition
    ArgumentNullException

    Thrown if group is null.

    ArgumentException

    Thrown if name is null or empty.

    Add(KeyValuePair<string, VariablesGroupAsset>)

    Add a global variable group to the source.

    Declaration
    public void Add(KeyValuePair<string, VariablesGroupAsset> item)
    Parameters
    Type Name Description
    KeyValuePair<string, VariablesGroupAsset> item
    Exceptions
    Type Condition
    ArgumentNullException

    Thrown if group is null.

    ArgumentException

    Thrown if name is null or empty.

    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)