Q36.webp
T

Q36.webp

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

Thông tin

Category
FGU301
Thêm bởi
thuyhoa276
Ngày thêm
Lượt xem
172
Lượt bình luận
1
Rating
0.00 star(s) 0 đánh giá

Share this media

Back
Bên trên Bottom