SceneManager
The SceneManager class is used to manage the loading, unloading, and switching of scenes, as well as retrieving information about scenes.
静态变量
SceneManager.activeScene : Scene |
| The active scene. |
SceneManager.mainScene : Scene |
| Main Scene. |
静态方法
SceneManager.CreateScene ( name : String ) : Scene |
| Create an empty new scene with the given name during runtime. The new scene will be added to the hierarchy along with any existing open scenes. |
SceneManager.GetSceneByName ( name : String ) : Scene |
| Get a scene by its name. |
SceneManager.UnloadScene ( scene : Scene ) : boolean |
| Unload the target scene. |
SceneManager.UnloadSceneByName ( name : String ) : boolean |
| Unloads the scene with the specified name. |
