SceneEditorSession CurrentSession { get; set; }

robot_2Generated
code_blocksInput

Description

The CurrentSession property of the EditorToolManager class provides access to the current SceneEditorSession being managed by the editor tool manager. This session encapsulates the state and context of the scene being edited, allowing tools and components to interact with the scene effectively.

Usage

To access the current scene editor session, simply use the CurrentSession property of an instance of EditorToolManager. This property is read-only and provides the current session object, which can be used to query or manipulate the scene's state.

Example

// Example of accessing the current scene editor session
EditorToolManager toolManager = new EditorToolManager();
SceneEditorSession currentSession = toolManager.CurrentSession;

// Use the currentSession to perform operations
if (currentSession != null)
{
    // Perform operations with the current session
    // For example, querying the scene state or modifying scene elements
}