EditorSceneManager

Extends SceneManager with editor-specific scene operations for opening, closing, and managing scenes in edit mode.

Definition

Namespace: Paragon.Core.SceneManagement.Editor Assembly: Paragon.Editor.dll

public sealed class EditorSceneManager : SceneManager

Inheritance: SceneManagerEditorSceneManager

Events

SceneOpened

Raised when a scene is opened in the editor.

public static event Action<Scene> SceneOpened;

SceneClosed

Raised when a scene is closed in the editor.

public static event Action<Scene> SceneClosed;

Methods

OpenScene()

Opens a scene in the editor with optional dependency loading.

Parameter
Type
Description

scene

Scene

The scene to open

openDependencies

bool

Whether to open dependencies first

openSceneMode

OpenSceneMode

Single or additive opening

CloseScene()

Closes a scene in the editor.

Parameter
Type
Description

scene

Scene

The scene to close

closeDependencies

bool

Whether to close dependencies

GetOpenedScenes()

Returns all currently opened scenes in the editor.

Returns: IEnumerable<Scene> — Opened scenes

IsSceneOpened()

Checks if a scene is currently opened.

Returns: booltrue if opened

GetAllScenesInProject()

Returns all scene assets in the project.

Returns: IEnumerable<Scene> — All project scenes

GetSceneGraph()

Returns the scene graph, creating one if needed.

Returns: SceneGraph — The project's scene graph

SaveSceneGraphAsset()

Saves the scene graph to ProjectSettings.

ApplySceneGraphToBuildSettings()

Syncs the scene graph to Build Settings.

SaveCurrentModifiedScenesIfUserWantsTo()

Prompts user to save modified scenes.

Returns: booltrue if user confirmed

See Also

Last updated

Was this helpful?