Class EditorSceneManager
Inheritance
EditorSceneManager
Assembly: UnityEditor.dll
Syntax
public sealed class EditorSceneManager : SceneManager
Properties
loadedSceneCount
Declaration
public static int loadedSceneCount { get; }
Property Value
playModeStartScene
Declaration
public static SceneAsset playModeStartScene { get; set; }
Property Value
preventCrossSceneReferences
Declaration
public static bool preventCrossSceneReferences { get; set; }
Property Value
previewSceneCount
Declaration
public static int previewSceneCount { get; }
Property Value
Methods
ClosePreviewScene(Scene)
Declaration
public static bool ClosePreviewScene(Scene scene)
Parameters
Type |
Name |
Description |
Scene |
scene |
|
Returns
CloseScene(Scene, Boolean)
Declaration
public static bool CloseScene(Scene scene, bool removeScene)
Parameters
Returns
DetectCrossSceneReferences(Scene)
Declaration
public static bool DetectCrossSceneReferences(Scene scene)
Parameters
Type |
Name |
Description |
Scene |
scene |
|
Returns
EnsureUntitledSceneHasBeenSaved(String)
Declaration
public static bool EnsureUntitledSceneHasBeenSaved(string dialogContent)
Parameters
Type |
Name |
Description |
String |
dialogContent |
|
Returns
GetSceneManagerSetup()
Declaration
public static SceneSetup[] GetSceneManagerSetup()
Returns
IsPreviewScene(Scene)
Declaration
public static bool IsPreviewScene(Scene scene)
Parameters
Type |
Name |
Description |
Scene |
scene |
|
Returns
IsPreviewSceneObject(Object)
Declaration
public static bool IsPreviewSceneObject(Object obj)
Parameters
Type |
Name |
Description |
Object |
obj |
|
Returns
|
Improve this Doc
View Source
LoadSceneAsyncInPlayMode(String, LoadSceneParameters)
Declaration
public static AsyncOperation LoadSceneAsyncInPlayMode(string path, LoadSceneParameters parameters)
Parameters
Returns
|
Improve this Doc
View Source
LoadSceneInPlayMode(String, LoadSceneParameters)
Declaration
public static Scene LoadSceneInPlayMode(string path, LoadSceneParameters parameters)
Parameters
Returns
MarkAllScenesDirty()
Declaration
public static void MarkAllScenesDirty()
MarkSceneDirty(Scene)
Declaration
public static bool MarkSceneDirty(Scene scene)
Parameters
Type |
Name |
Description |
Scene |
scene |
|
Returns
MoveSceneAfter(Scene, Scene)
Declaration
public static void MoveSceneAfter(Scene src, Scene dst)
Parameters
MoveSceneBefore(Scene, Scene)
Declaration
public static void MoveSceneBefore(Scene src, Scene dst)
Parameters
NewPreviewScene()
Declaration
public static Scene NewPreviewScene()
Returns
|
Improve this Doc
View Source
NewScene(NewSceneSetup)
Declaration
[ExcludeFromDocs]
public static Scene NewScene(NewSceneSetup setup)
Parameters
Returns
NewScene(NewSceneSetup, NewSceneMode)
Declaration
public static Scene NewScene(NewSceneSetup setup, [DefaultValue("NewSceneMode.Single")] NewSceneMode mode)
Parameters
Returns
|
Improve this Doc
View Source
OpenScene(String)
Declaration
[ExcludeFromDocs]
public static Scene OpenScene(string scenePath)
Parameters
Type |
Name |
Description |
String |
scenePath |
|
Returns
OpenScene(String, OpenSceneMode)
Declaration
public static Scene OpenScene(string scenePath, [DefaultValue("OpenSceneMode.Single")] OpenSceneMode mode)
Parameters
Returns
RestoreSceneManagerSetup(SceneSetup[])
Declaration
public static void RestoreSceneManagerSetup(SceneSetup[] value)
Parameters
SaveCurrentModifiedScenesIfUserWantsTo()
Declaration
public static bool SaveCurrentModifiedScenesIfUserWantsTo()
Returns
SaveModifiedScenesIfUserWantsTo(Scene[])
Declaration
public static bool SaveModifiedScenesIfUserWantsTo(Scene[] scenes)
Parameters
Type |
Name |
Description |
Scene[] |
scenes |
|
Returns
SaveOpenScenes()
Declaration
public static bool SaveOpenScenes()
Returns
|
Improve this Doc
View Source
SaveScene(Scene)
Declaration
[ExcludeFromDocs]
public static bool SaveScene(Scene scene)
Parameters
Type |
Name |
Description |
Scene |
scene |
|
Returns
|
Improve this Doc
View Source
SaveScene(Scene, String)
Declaration
[ExcludeFromDocs]
public static bool SaveScene(Scene scene, string dstScenePath)
Parameters
Returns
|
Improve this Doc
View Source
SaveScene(Scene, String, Boolean)
Declaration
public static bool SaveScene(Scene scene, [DefaultValue("\"\"")] string dstScenePath, [DefaultValue("false")] bool saveAsCopy)
Parameters
Returns
SaveScenes(Scene[])
Declaration
public static bool SaveScenes(Scene[] scenes)
Parameters
Type |
Name |
Description |
Scene[] |
scenes |
|
Returns
Events
|
Improve this Doc
View Source
activeSceneChangedInEditMode
Declaration
public static event UnityAction<Scene, Scene> activeSceneChangedInEditMode
Event Type
|
Improve this Doc
View Source
newSceneCreated
Declaration
public static event EditorSceneManager.NewSceneCreatedCallback newSceneCreated
Event Type
|
Improve this Doc
View Source
sceneClosed
Declaration
public static event EditorSceneManager.SceneClosedCallback sceneClosed
Event Type
|
Improve this Doc
View Source
sceneClosing
Declaration
public static event EditorSceneManager.SceneClosingCallback sceneClosing
Event Type
|
Improve this Doc
View Source
sceneOpened
Declaration
public static event EditorSceneManager.SceneOpenedCallback sceneOpened
Event Type
|
Improve this Doc
View Source
sceneOpening
Declaration
public static event EditorSceneManager.SceneOpeningCallback sceneOpening
Event Type
|
Improve this Doc
View Source
sceneSaved
Declaration
public static event EditorSceneManager.SceneSavedCallback sceneSaved
Event Type
|
Improve this Doc
View Source
sceneSaving
Declaration
public static event EditorSceneManager.SceneSavingCallback sceneSaving
Event Type
Extension Methods