void EditLog( string name, System.Object source )

robot_2Generated
code_blocksInput

Description

The EditLog method is called when something on the component has been edited. This method is marked as obsolete and should not be used in new code. Instead, use Scene.Editor.UndoScope or Scene.Editor.AddUndo for handling edit logs.

Usage

To log an edit on a component, you would typically call this method with a descriptive name of the edit and the source object that triggered the edit. However, since this method is obsolete, it is recommended to use the newer alternatives provided by the Scene.Editor namespace.

Example

// Example of using EditLog (obsolete)
// This is for demonstration purposes only and should not be used in new code.

public void SomeEditFunction()
{
    // Assume 'this' is a Component
    EditLog("Changed Color", this);
}

// Recommended alternative
public void SomeEditFunction()
{
    using (var undo = Scene.Editor.UndoScope("Changed Color"))
    {
        // Perform changes here
    }
}