Version: 5.3

SceneManager

class in UnityEngine.SceneManagement

매뉴얼로 전환

설명

Scene management at run-time.

정적 변수

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

정적 함수

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. 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.
SetActiveSceneSet the scene to be active.
UnloadSceneUnloads all GameObjects associated with the given scene.