Description
The Discard
method in the Editor.EditorScene
class is a static method used to discard any unsaved changes in the current editor scene. This method is useful when you want to revert the scene to its last saved state, effectively undoing any modifications made since the last save operation.
Usage
To use the Discard
method, simply call it directly from the Editor.EditorScene
class. This method does not take any parameters and does not return any value. It is important to note that using this method will result in the loss of any unsaved changes, so it should be used with caution.
Example
// Example of using the Discard method
// Discard any unsaved changes in the current editor scene
Editor.EditorScene.Discard();