Description
The SaveState
method is a public instance method of the Editor.SceneViewportWidget
class. It is used to save the current state of the scene viewport widget. This method is associated with the scene.session.save
event, indicating that it is triggered when a save session event occurs.
Usage
To use the SaveState
method, you need to have an instance of the SceneViewportWidget
class. Call the method on this instance to save the current state of the scene viewport. This is typically used in scenarios where you want to persist the current configuration or settings of the viewport for later retrieval.
Example
// Assuming 'viewportWidget' is an instance of SceneViewportWidget
viewportWidget.SaveState();
// This will trigger the save state functionality, persisting the current state of the viewport.