Class VariablesListener
Components for listening for changes in values of a list of variables. An event is raised
if ANY of the variables in the list change.
Useful for updating UI elements when a value changes (Observable Pattern).
Inheritance
VariablesListener
Assembly: NoSuchStudio-Variables.dll
Syntax
[ExecuteInEditMode]
public class VariablesListener : NoSuchMonoBehaviour, IVariablesServiceComponent, IServiceComponent<VariablesService>
Fields
_connected
Declaration
[NonSerialized]
protected Dictionary<Type, bool> _connected
Field Value
changeEvent
Declaration
public VariablesListener.ChangeEvent changeEvent
Field Value
Properties
mono
Declaration
public MonoBehaviour mono { get; }
Property Value
| Type |
Description |
| UnityEngine.MonoBehaviour |
|
variablesList
Declaration
public List<string> variablesList { set; }
Property Value
Methods
IsConnected<ST>()
Declaration
public virtual bool IsConnected<ST>()
where ST : Service<ST>
Returns
Type Parameters
OnDisable()
Declaration
protected virtual void OnDisable()
OnEnable()
Declaration
protected virtual void OnEnable()
Update()
Declaration
Implements
IServiceComponent<>