docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class ProfileValueReference

    Used to store references to profile variables. This class is intended to be used for fields in user scripts, specifically ones that subclass AddressableAssetGroupSchema.

    Inheritance
    object
    ProfileValueReference
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: UnityEditor.AddressableAssets.Settings
    Assembly: solution.dll
    Syntax
    [Serializable]
    public class ProfileValueReference

    Fields

    Name Description
    OnValueChanged

    This delegate will be invoked when the reference profile id changes. This will NOT be invoked when the actual profile value itself changes.

    Properties

    Name Description
    Id

    Get the profile variable id.

    Methods

    Name Description
    GetName(AddressableAssetSettings)

    Get the profile variable name that is referenced.

    GetValue(AddressableAssetProfileSettings, string)

    Evaluate the profile value using the provided profile settings object and a profile id.

    GetValue(AddressableAssetSettings)

    Evaluate the profile value using the provided settings object.

    GetValue(AddressableAssetSettings, bool)

    Evaluate the profile value using the provided settings object.

    SetVariableById(AddressableAssetSettings, string)

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

    SetVariableByName(AddressableAssetSettings, string)

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

    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)