/ChangeMonitor

Intended for Unity3D; can simplify the detection of changes in properties.

Primary LanguageC#Apache License 2.0Apache-2.0

ChangeMonitor

Intended for Unity3D; can simplify the detection of changes in properties. However, the ChangeMonitor class does not refer to any part of the Unity3D framework and can be used in another case if you find a use for it.

See ChangeMonitorExample.cs for a Unity3D component utilizing the class. It exposes a set of public members, which can be edited in the Unity3D property editor, and will recognize when any of these figures are changed in the Unity3D editor at runtime.

ChangeMonitor is not thread-safe.

Note, also, that ChangeMonitor.Evaluate causes a side effect; the new figures will be remembered and overwrite old figures, and typically, an immediate subsequent call to Evaluate will yield false.