Version: 5.3 (switch to 5.4b)
IdiomaEnglish
  • C#
  • JS

Idioma de script

Selecciona tu lenguaje de programación favorito. Todos los fragmentos de código serán mostrados en este lenguaje.

EditorSceneManager

class in UnityEditor.SceneManagement

/

Hereda de:SceneManagement.SceneManager

Sugiere un cambio

¡Éxito!

Gracias por ayudarnos a mejorar la calidad de la documentación de Unity. A pesar de que no podemos aceptar todas las sugerencias, leemos cada cambio propuesto por nuestros usuarios y actualizaremos los que sean aplicables.

Cerrar

No se puedo enviar

Por alguna razón su cambio sugerido no pudo ser enviado. Por favor <a>intente nuevamente</a> en unos minutos. Gracias por tomarse un tiempo para ayudarnos a mejorar la calidad de la documentación de Unity.

Cerrar

Cancelar

Cambiar al Manual

Descripción

Scene management in the editor.

Variables Estáticas

loadedSceneCountThe number of loaded scenes.

Funciones Estáticas

CloseSceneClose the scene. If removeScene flag is true, the closed scene will also be removed from EditorSceneManager.
GetSceneManagerSetupReturns the current setup of the SceneManager.
MarkAllScenesDirtyMark all the loaded scenes as modified.
MarkSceneDirtyMark the 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.
SaveOpenScenesSave all open scenes.
SaveSceneSave a scene.
SaveScenesSave a list of scenes.

Miembros heredados

Variables Estáticas

sceneCountThe total number of scenes.
sceneCountInBuildSettingsNumber of scenes in Build Settings.

Funciones Estáticas

CreateSceneCreate an empty new scene with the given name additively.
GetActiveSceneGet the active scene.
GetSceneAtGet the scene at index in the SceneManager's list of added scenes.
GetSceneByNameSearches through the scenes added to the SceneManager for a scene with the given name.
GetSceneByPathSearches all scenes added to the SceneManager for a scene that has the given asset path.
LoadSceneLoads the scene by its name or index in Build Settings.
LoadSceneAsyncLoads the scene asynchronously in the background.
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. It is required that the GameObject is at the root of its current scene.
SetActiveSceneSet the scene to be active.
UnloadSceneUnloads all GameObjects associated with the given scene.