Class TrackedProperty<TPrimitive>
Represents a property for a primitive data type.
Implements
ITrackedPropertyValue<TPrimitive>
Namespace: UnityEngine.Localization.PropertyVariants.TrackedProperties
Assembly: solution.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. |