Version: 5.4

EditorSceneManager

class in UnityEditor.SceneManagement

/

Hereda de:SceneManagement.SceneManager

Cambiar al Manual

Descripción

Scene management in the Editor.

Variables Estáticas

loadedSceneCountThe number of loaded Scenes.
preventCrossSceneReferencesControls whether cross-Scene references are allowed in the Editor.

Funciones Estáticas

CloseSceneClose the Scene. If removeScene flag is true, the closed Scene will also be removed from EditorSceneManager.
DetectCrossSceneReferencesChecks for cross-Scene references in the specified Scene.
GetSceneManagerSetupReturns the current setup of the SceneManager.
MarkAllScenesDirtyMark all the loaded Scenes as modified.
MarkSceneDirtyMark the specified Scene as modified.
MoveSceneAfterAllows you to reorder the Scenes currently open in the Hierarchy window. Moves the source Scene so it comes after the destination Scene.
MoveSceneBeforeAllows you to reorder the Scenes currently open in the Hierarchy window. Moves the source Scene so it comes before the destination Scene.
NewSceneCrear una nueva escena.
OpenSceneOpen a Scene in the Editor.
RestoreSceneManagerSetupRestore the setup of the SceneManager.
SaveCurrentModifiedScenesIfUserWantsToAsk the user if they want to save the the modified Scene(s).
SaveModifiedScenesIfUserWantsToAsk the user if they want to save any of the modfied input Scenes.
SaveOpenScenesCrear una nueva escena.
SaveSceneCrear una nueva escena.
SaveScenesSave a list of Scenes.

Miembros heredados

Variables Estáticas

sceneCountLa cantidad total de escenas actualmente cargadas.
sceneCountInBuildSettingsCantidad de escenas en los Build Settings.

Funciones Estáticas

CreateSceneCrea una escena nueva vacía en tiempo de ejecución con el nombre dado.
GetActiveSceneObtiene la escena actualmente activa.
GetSceneAtObtiene la escena en el indice en la lista del SceneManager de las escenas agregadas.
GetSceneByNameBusca a través de las escenas agregadas al SceneManager para una escena con el nombre dado.
GetSceneByPathBusca todas las escenas agregadas al SceneManager para una escena que tiene la ruta del asset dado.
LoadSceneCarga la escena por us nombre o indice en los Build Settings.
LoadSceneAsyncCarga la escena asincronicamente en el fondo.
MergeScenesThis will merge the source scene into the destinationScene. This function merges the contents of the source scene into the destination scene, and deletes the source scene. All GameObjects at the root of the source scene are moved to the root of the destination scene. NOTE: This function is destructive: The source scene will be destroyed once the merge has been completed.
MoveGameObjectToSceneMove a GameObject from its current scene to a new Scene. You can only move root GameObjects from one Scene to another. This means the GameObject to move must not be a child of any other GameObject in its Scene.
SetActiveSceneConfigura la escena para estar activa.
UnloadSceneDestruye todos los GameObjects asociados con la escena dada y quita la escena del SceneManager.

Events

SceneManagement.SceneManagerAgrega un delegate a esto para obtener notificaciones cuando una escena se ha cargado.
SceneManagement.SceneManagerAgrega un delegate a esto para obtener notificaciones cuando una escena se ha des-cargado
SceneManagement.SceneManagerAgrega un delegate a esto para obtener notificaciones cuando la escena activa ha cambiado
activeSceneChangedAgrega un delegate a esto para obtener notificaciones cuando la escena activa ha cambiado
sceneLoadedAgrega un delegate a esto para obtener notificaciones cuando una escena se ha cargado.
sceneUnloadedAgrega un delegate a esto para obtener notificaciones cuando una escena se ha des-cargado