Version: Unity 6.7 Alpha (6000.7)
LanguageEnglish
  • C#

Variable<T0>

class in Unity.SmartStrings.PersistentVariables


Implements interfaces:ISerializationCallbackReceiver, IVariable, IVariableValueChanged

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Description

Base class for all single source variables. Inherit from this class for storage for a single serialized source value that will send a value changed event when Variable<T0>.Value is changed. This will trigger any localized string that is currently using the variable to update.

Properties

Property Description
Value The value for this variable. Changing this will trigger the Variable<T0>.ValueChanged event.

Public Methods

Method Description
ToString Returns the string representation of this variable's value.

Events

Event Description
ValueChanged Raised when Variable<T0>.Value changes.