VariableStorageBehaviour.AddChangeListener(System.Action<string, object>)
Method in VariableStorageBehaviour
Summary
Registers a delegate that will be called when any variable is modified.
public IDisposable AddChangeListener(System.Action<string, object> onChange)Parameters
| Name | Description |
|---|---|
Action<string, object> onChange | The delegate to run when the variable changes value. |
Returns
An System.IDisposable that removes the registration
when its System.IDisposable.Dispose method is
called.