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

NameDescription
Action<string, object> onChangeThe delegate to run when the variable changes value.

Returns

An System.IDisposable that removes the registration when its System.IDisposable.Dispose method is called.