docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class TrackedProperty<TPrimitive>

    Represents a property for a primitive data type.

    Inheritance
    object
    TrackedProperty<TPrimitive>
    BoolTrackedProperty
    ByteTrackedProperty
    CharTrackedProperty
    DoubleTrackedProperty
    FloatTrackedProperty
    IntTrackedProperty
    LongTrackedProperty
    SByteTrackedProperty
    ShortTrackedProperty
    StringTrackedProperty
    UIntTrackedProperty
    ULongTrackedProperty
    UShortTrackedProperty
    Implements
    ITrackedPropertyValue<TPrimitive>
    IStringProperty
    ITrackedProperty
    ISerializationCallbackReceiver
    Namespace: UnityEngine.Localization.PropertyVariants.TrackedProperties
    Assembly: Unity.Localization.dll
    Syntax
    [Serializable]
    public class TrackedProperty<TPrimitive> : ITrackedPropertyValue<TPrimitive>, IStringProperty, ITrackedProperty, ISerializationCallbackReceiver
    Type Parameters
    Name Description
    TPrimitive

    The primitive data type.

    Properties

    Name Description
    PropertyPath

    The property's serialized property path.

    Methods

    Name Description
    ConvertFromString(string)
    ConvertToString(TPrimitive)
    GetValue(LocaleIdentifier, LocaleIdentifier, out TPrimitive)

    Attempts to find a value for the provided LocaleIdentifier or fallback.

    GetValue(LocaleIdentifier, out TPrimitive)

    Attempts to find a value for the provided LocaleIdentifier.

    GetValueAsString(LocaleIdentifier)

    Returns the value for the LocaleIdentifier as a string representation.

    GetValueAsString(LocaleIdentifier, LocaleIdentifier)

    Returns the value for the LocaleIdentifier as a string representation, uses the fallback if a variant does not exist.

    HasVariant(LocaleIdentifier)

    Checks if the property contains an overriden value for the LocaleIdentifier.

    RemoveVariant(LocaleIdentifier)
    SetValue(LocaleIdentifier, TPrimitive)

    Assigns a value for the chosen LocaleIdentifier.

    SetValueFromString(LocaleIdentifier, string)

    Assigns a value for the chosen LocaleIdentifier.

    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)