You need a new Scene

  1. Project Window > Assets Folder > Scene Folder > Create a Scene

  2. Name it (e.g. Scene1, Scene2)

    Screen Shot 2024-02-29 at 2.44.37 PM.png

  3. Open the new scene

  4. SAVE

Add New Scene to Build Setting

Unity 6

  1. File > Build Profile > Scene List

  2. Go to Scene List:

    Two ways you can add the new scene

    1. drag and drop the new Scene from Unity Proejct folder to the box of Scenes in Build e.g. below
    2. or Click Add Open Scenes - often new scenes do not appear. then go back to Unity Editor and open the nethe new scene and save it.

    <aside> 🚨 You do NOT need to click Build and Run

    </aside>

    Screenshot 2025-03-05 at 3.44.08 PM.png

    Screenshot 2025-03-05 at 3.49.30 PM.png

Lower Version

<aside> 🚨 You do NOT need to click Build and Run

</aside>

Go back to your First Scene

  1. Create an empty gameObject that triggers Scene Transition

    1. Create Empty> Name SceneCollider
    2. Identify Empty gameObject position
  2. Add Box Collider component to SceneCollider (triggers Scene transition)

    1. Check on is Tigger

    2. Reset the Box Collider’s Position 0, 0, 0 on Transform in the Inspector Window.

    3. Relocate it on a desirable place where the player enters

      Player Collides with this trigger and the scene transition will occur

    4. Modify Box Collider Size: Go to Box Collider component and click Edit Collider

      1. it will show a modifiable green box. Resize its dimension for player to hit that triggers a scene transition

      Screen Shot 2024-03-01 at 6.38.09 PM.png

      Screen Shot 2024-03-01 at 6.36.58 PM.png

  3. Locate SceneCollider at a desirable position. (below a game object that Player will get near by and trigger the scene change )

  4. Child a targeted gameObject for scene transition

    1. Pick and Child a gameObject under SceneCollider

      I used a chair

      Screen Shot 2024-02-29 at 3.05.44 PM.png

  5. Player

    First Person Controller

    1. Player Inspector >Tag your player as Player

    Screen Shot 2024-02-18 at 8.56.49 PM.png

  6. C# Script

    1. Create a Script
    2. name it toSceneTransition
    3. copy and past the sample code below
      1. Add the NEW Scene’s name to("_____")

        <aside> 🚨 Write the CORRECT name of the New Scene on your Script

        </aside>

  7. add the SceneTransition script to SceneColliderthe empty object

    Screen Shot 2024-02-29 at 3.12.23 PM.png

test Video

Screen Recording 2024-02-29 at 3.14.50 PM.mov