AddChangeListener<T>(string,Action<T>)
Last updated
Was this helpful?
Last updated
Was this helpful?
Method in
Registers a delegate that will be called when the variable variableName
is modified.
string
variableName
The name of the variable to watch for changes to. This variable must be of type T
, and it must not be a smart variable.
Action<T>
onChange
The delegate to run when the variable changes value.
T
The type of the variable.
An System.IDisposable
that removes the registration
when its System.IDisposable.Dispose
method is
called.