docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class GlobalVariable<T>

    Base class for all single source variables. Inhterit from this class for storage for a single serialized source value that will send a value changed event when Value is changed. This will trigger any LocalizedString that is currently using the variable to update.

    Inheritance
    object
    Variable<T>
    GlobalVariable<T>
    Implements
    IVariableValueChanged
    IVariable
    ISerializationCallbackReceiver
    Inherited Members
    Variable<T>.ValueChanged
    Variable<T>.Value
    Variable<T>.GetSourceValue(ISelectorInfo)
    Namespace: UnityEngine.Localization.SmartFormat.GlobalVariables
    Assembly: Unity.Localization.dll
    Syntax
    [Serializable]
    [Obsolete("Please use UnityEngine.Localization.SmartFormat.PersistentVariables.Variable instead.")]
    public class GlobalVariable<T> : Variable<T>, IVariableValueChanged, IVariable, ISerializationCallbackReceiver
    Type Parameters
    Name Description
    T

    The value type to store in this variable.

    Implements

    IVariableValueChanged
    IVariable
    ISerializationCallbackReceiver
    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)