Kizspy | Question: 36
(Choose 1 answer)
What does this script do?
using UnityEngine;
public class AsyncLoad: MonoBehaviour {
IEnumerator LoadLevel(string levelName) {
AsyncOperation async = SceneManager.LoadSceneAsync(levelName);
yield return new WaitUntil(() => async.isDone);
Debug.Log("Level loaded");
void Start() {
StartCoroutine(LoadLevel("Main Level"));
A. Loads a scene using a blocking synchronous method
B. Loads a level asynchronously and logs when complete
C. Unloads the currently active scene from memory
D. Executes a synchronous action without coroutine usage