Complete the code to load a scene named "GameScene".
SceneManager.[1]("GameScene");
The LoadScene method loads the specified scene by name.
Complete the code to unload a scene by its name "MenuScene".
SceneManager.[1]("MenuScene");
The UnloadSceneAsync method unloads a scene asynchronously by name.
Fix the error in the code to add a new scene called "Level2" additively.
SceneManager.[1]("Level2", LoadSceneMode.Additive);
To load a scene additively, use LoadSceneAsync with LoadSceneMode.Additive.
Fill both blanks to check if a scene named "Tutorial" is loaded.
Scene scene = SceneManager.[1]("Tutorial"); bool isLoaded = scene.[2];
GetSceneByName gets the scene object by name, and isLoaded checks if it is loaded.
Fill all three blanks to create a new empty scene and set it as active.
Scene newScene = SceneManager.[1]("NewScene"); SceneManager.[2](newScene); bool activeCheck = SceneManager.[3]().name == "NewScene";
CreateScene makes a new empty scene, SetActiveScene sets it active, and GetActiveScene returns the current active scene.
