Class SByteVariable
An IVariable implementation that holds a single signed byte value.
Inherited Members
Namespace: UnityEngine.Localization.SmartFormat.PersistentVariables
Assembly: Unity.Localization.dll
Syntax
[Serializable]
[DisplayName("Signed Byte", null)]
[Obsolete("Use Unity.SmartStrings.PersistentVariables.SByteVariable from the SmartStrings module instead.")]
[UxmlObject]
public class SByteVariable : Variable<sbyte>, IVariableValueChanged, IVariable, ISerializationCallbackReceiver
Remarks
This class is serializable. You can use it in the Inspector. Modifying its Value triggers the ValueChanged event, automatically updating any Smart Strings displaying the value.
Examples
The following example shows how to create a BoolVariable and use it in a LocalizedString.
The following example shows how to create a SByteVariable and use it in a LocalizedString.
The following example shows how to create a DoubleVariable and use it in a LocalizedString.