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 : SceneManagerInheritance: SceneManager → EditorSceneManager
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.
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.
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: bool — true 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: bool — true if user confirmed
See Also
Last updated
Was this helpful?