0
0
Unityframework~20 mins

Build settings and scene order in Unity - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Build Settings Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
Predict Output
intermediate
2:00remaining
Scene Loading Order in Build Settings

Consider a Unity project with three scenes added to the Build Settings in this order: Menu, Level1, and Level2. The first scene is set as the default scene to load on game start.

What scene will be loaded first when the game runs?

ANo scene will load automatically
BLevel1
CLevel2
DMenu
Attempts:
2 left
💡 Hint

Check which scene is at index 0 in the Build Settings list.

🧠 Conceptual
intermediate
2:00remaining
Effect of Scene Order on SceneManager.LoadScene

In Unity, if you call SceneManager.LoadScene(1), which scene will load?

Assume the Build Settings have scenes in this order: Intro (index 0), Game (index 1), Credits (index 2).

ACredits
BGame
CIntro
DAn error occurs because index 1 is invalid
Attempts:
2 left
💡 Hint

Scene indices correspond to their order in Build Settings starting at 0.

Predict Output
advanced
2:00remaining
What happens if a scene is missing from Build Settings?

Given this code snippet in Unity:

using UnityEngine;
using UnityEngine.SceneManagement;

public class TestScene : MonoBehaviour {
    void Start() {
        SceneManager.LoadScene("MissingScene");
    }
}

Assuming MissingScene is not added to Build Settings, what will happen when this runs in a built game?

AUnity will throw a runtime error and fail to load the scene
BThe game will load the scene anyway without errors
CThe game will load the first scene in Build Settings instead
DThe game will freeze without any error message
Attempts:
2 left
💡 Hint

Think about what happens if a scene name is not found in the build.

Predict Output
advanced
2:00remaining
Scene Count in Build Settings

If your Unity Build Settings list contains these scenes in order: Start, LevelA, LevelB, End, how many scenes does SceneManager.sceneCountInBuildSettings return?

A3
BDepends on the active scene
C4
D5
Attempts:
2 left
💡 Hint

Count all scenes listed in Build Settings.

🧠 Conceptual
expert
3:00remaining
Impact of Scene Order on Build Size and Loading

Which statement about the order of scenes in Unity Build Settings is correct?

AAll scenes listed in Build Settings are included in the build regardless of order, but the order determines their index for loading
BThe first scene in Build Settings is always included in the build, but other scenes are only included if loaded at runtime
CScenes not at index 0 are excluded from the build and must be loaded from asset bundles
DThe order of scenes in Build Settings affects the compression level of each scene in the build
Attempts:
2 left
💡 Hint

Think about what Build Settings controls for scenes in a build.