Description
The NoteChanged
method is a virtual method of the SerializedObject
class. It is used to notify the system that a change has occurred in a specific serialized property. This method is typically called after a property has been modified to ensure that any necessary updates or actions are taken in response to the change.
Usage
To use the NoteChanged
method, you need to have an instance of a class that derives from SerializedObject
. You can then call this method, passing in the SerializedProperty
that has changed.
This method is virtual, so it can be overridden in a derived class to provide custom behavior when a property change is noted.
Example
// Assuming 'mySerializedObject' is an instance of a class derived from SerializedObject
// and 'property' is a SerializedProperty that has been changed.
mySerializedObject.NoteChanged(property);