SceneEditorSession Active { get; set; }

book_4_sparkGenerated
code_blocksInput

Description

The Active property of the SceneEditorSession class provides access to the currently active scene editor session. This property is static and can be accessed without instantiating the SceneEditorSession class. It is useful for retrieving the session that is currently being edited or interacted with in the editor environment.

Usage

To access the active scene editor session, simply use the Active property. This will return an instance of SceneEditorSession that represents the session currently in focus.

Example usage:

Editor.SceneEditorSession currentSession = Editor.SceneEditorSession.Active;
if (currentSession != null)
{
    // Perform operations with the active session
    currentSession.Reload();
}

Example

Editor.SceneEditorSession currentSession = Editor.SceneEditorSession.Active;
if (currentSession != null)
{
    // Perform operations with the active session
    currentSession.Reload();
}