Description
The FullUndoSnapshot
method in the Editor.SceneEditorSession
class is marked as obsolete. It was previously used to create a full undo snapshot of the current scene with a specified title. However, this functionality is no longer supported, and it is recommended to use UndoScope
or AddUndo
for managing undo operations.
Usage
Since FullUndoSnapshot
is obsolete, you should avoid using it in new code. Instead, consider using the UndoScope
method or the AddUndo
method to handle undo operations in a more efficient and supported manner.
Example
// Example of using UndoScope instead of FullUndoSnapshot
using (var undo = sceneEditorSession.UndoScope("My Undo Operation"))
{
// Perform operations that should be undoable
// ...
// Commit the undo operation
undo.Commit();
}