The OnPropertyFinishEdit
property of the SerializedObject
class is a delegate that is invoked when the editing of a property is completed. This delegate allows you to define custom behavior that should occur after a property has been edited.
The OnPropertyFinishEdit
property of the SerializedObject
class is a delegate that is invoked when the editing of a property is completed. This delegate allows you to define custom behavior that should occur after a property has been edited.
To use the OnPropertyFinishEdit
property, assign a method that matches the PropertyFinishEditDelegate
signature to it. This method will be called whenever a property edit is finished.
// Example of using OnPropertyFinishEdit // Define a method that matches the PropertyFinishEditDelegate signature void OnFinishEdit(SerializedProperty property) { // Custom logic to execute when a property edit is finished Log.Info($"Finished editing property: {property.Name}"); } // Assign the method to the OnPropertyFinishEdit delegate SerializedObject serializedObject = new SerializedObject(); serializedObject.OnPropertyFinishEdit = OnFinishEdit; // Now, whenever a property edit is finished, OnFinishEdit will be called.