All pages
Powered by GitBook
1 of 1

Loading...

AddChangeListener(System.Action<string, object>)

Method in VariableStorageBehaviour

Summary

Registers a delegate that will be called when any variable is modified.

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.

public IDisposable AddChangeListener(System.Action<string, object> onChange)