Description
The RecordChange
method is a member of the Editor.SceneEditorSession
class. It is used to record changes made to a serialized property within the scene editor session. This method is marked as obsolete, indicating that it is no longer recommended for use and may be removed in future versions. Developers are encouraged to use alternative methods for tracking changes.
Usage
To use the RecordChange
method, you need to pass a Sandbox.SerializedProperty
object as a parameter. This method is intended to be called when a change to a property needs to be recorded within the editor session. However, since it is marked as obsolete, consider using other methods such as AddUndo
or UndoScope
for managing changes and undo operations.
Example
// Example usage of RecordChange (not recommended due to obsolescence)
var session = new Editor.SceneEditorSession();
var property = new Sandbox.SerializedProperty();
// Record a change to the property
session.RecordChange(property); // Note: This method is obsolete.