The SceneEditorSession class in the Editor
namespace is responsible for managing the current open scene and its edit state. It provides various methods and properties to interact with and manipulate the scene within the editor environment.
The SceneEditorSession class in the Editor
namespace is responsible for managing the current open scene and its edit state. It provides various methods and properties to interact with and manipulate the scene within the editor environment.
Member Name | Summary |
---|---|
All | Gets a list of all scene editor sessions. |
Active | Gets the currently active scene editor session. |
Scope | Pushes the active editor scene to the current scope. |
ShowCloseDialog | Displays a dialog to confirm closing the session. |
Resolve | Resolves a scene editor session from various sources. |
Member Name | Summary |
---|---|
Destroy | Destroys the current scene editor session. |
MakeActive | Makes this session active, optionally bringing it to the front. |
BringToFront | Bring this scene tab to the front. |
Tick | Updates the session state. |
FrameTo | Frames the view to a specified bounding box. |
Reload | Reloads the current scene. |
Save | Saves the current scene, with an option to save as a new file. |
GetParentSession | Returns the parent editor session if this is a game session. |
RecordChange | Records a change to a serialized property. Obsolete. |
SerializeSelection | Serializes the current selection to a JSON string. |
DeserializeSelection | Deserializes a selection from a JSON string. |
FullUndoSnapshot | Creates a full undo snapshot. Obsolete. |
PushUndoSelection | Pushes the current selection into the undo system. Obsolete. |
AddUndo | Adds an undo action with specified undo and redo actions. |
UndoScope | Creates an undo scope for the session. |
IsGameSession | Indicates if this session is the running game. |
IsPrefabSession | Indicates if this session is editing a prefab. |
Scene | Gets the scene associated with this session. |
OnFrameTo | Event triggered when framing to a bounding box. |
HasUnsavedChanges | Indicates if there are unsaved changes in the session. |
Selection | Gets the selection system for the session. |
UndoSystem | Gets the undo system for the session. |