docs.unity3d.com

Localization 1.5.1

Search Results for

    Show / Hide Table of Contents

    Class Variable<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>
    BoolVariable
    ByteVariable
    DoubleVariable
    FloatVariable
    IntVariable
    LongVariable
    NestedVariablesGroup
    ObjectVariable
    SByteVariable
    ShortVariable
    StringVariable
    UIntVariable
    ULongVariable
    UShortVariable
    Implements
    IVariableValueChanged
    IVariable
    ISerializationCallbackReceiver
    Namespace: UnityEngine.Localization.SmartFormat.PersistentVariables
    Assembly: Unity.Localization.dll
    Syntax
    [Serializable]
    public class Variable<T> : IVariableValueChanged, IVariable, ISerializationCallbackReceiver
    Type Parameters
    Name Description
    T

    The value type to store in this variable.

    Properties

    Name Description
    Value

    The value for this variable. Changing this will trigger the ValueChanged event.

    Methods

    Name Description
    GetSourceValue(ISelectorInfo)

    The value that will be used when the smart string matches this variable. This value can then be further used by additional sources/formatters.

    Events

    Name Description
    ValueChanged

    Called when Value is changed.

    In This Article
    • Properties
    • Methods
    • Events
    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)