Recall & Review
beginner
What does async keyword do in Unity C#?
It marks a method so it can run asynchronously, allowing the method to pause and resume without blocking the main game thread.
Click to reveal answer
beginner
What is the purpose of the await keyword in Unity async methods?
It tells the program to wait for an asynchronous task to finish before continuing, without freezing the game.
Click to reveal answer
beginner
Why should you avoid blocking the main thread in Unity?
Blocking the main thread causes the game to freeze or stutter, making the player experience bad.
Click to reveal answer
intermediate
How can you use async/await to load game assets smoothly?
You can load assets asynchronously with await, so the game keeps running while loading happens in the background.
Click to reveal answer
intermediate
What type must an async method return in Unity C#?
It usually returns
Task or Task<T> to represent the asynchronous operation.Click to reveal answer
What happens if you use
await on a long task in Unity?✗ Incorrect
Using await lets the game keep running while waiting for the task to finish.
Which return type is NOT valid for an async method in Unity C#?
✗ Incorrect
Async methods cannot return plain int; they must return Task, Task, or void (for event handlers).
Why is async/await useful in Unity game development?
✗ Incorrect
Async/await allows long tasks to run without freezing the game, improving responsiveness.
What is a common use case for async/await in Unity?
✗ Incorrect
Async/await is great for loading assets or data without freezing the game.
What happens if you forget to use await inside an async method?
✗ Incorrect
Without await, the async method runs synchronously and can block the main thread.
Explain how async and await work together in Unity to keep the game running smoothly.
Think about how waiting for tasks can happen without freezing the game.
You got /3 concepts.
Describe a scenario in Unity where using async/await improves player experience.
Consider when the game needs to load something big or slow.
You got /4 concepts.