void EditLog( string name, System.Object source )

book_4_sparkGenerated
code_blocksInput

Description

The EditLog method is a virtual method of the GameObject class in the Sandbox namespace. It is marked as obsolete and should not be used in new code. Instead, it is recommended to use Scene.Editor.UndoScope or Scene.Editor.AddUndo for handling edit logs.

Usage

This method is intended to log edits made to a GameObject. However, since it is obsolete, it is advised to transition to using the recommended alternatives for managing undo operations in the editor.

Example

// Example of using the obsolete EditLog method
// Note: This is for demonstration purposes only and should not be used in new code.

GameObject myObject = new GameObject();
myObject.EditLog("ChangeName", "NewName");

// Recommended approach
// Use Scene.Editor.UndoScope or Scene.Editor.AddUndo instead.