docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method SetVariableByName

    SetVariableByName(AddressableAssetSettings, string)

    Set the profile variable id using the name of the variable.

    Declaration
    public bool SetVariableByName(AddressableAssetSettings settings, string name)
    Parameters
    Type Name Description
    AddressableAssetSettings settings

    The settings object.

    string name

    The name of the profile variable to set.

    Returns
    Type Description
    bool

    True if the profile data is found and set, false otherwise.

    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)