Project Window > Assets Folder > Scene Folder > Create a Scene
Name it (e.g. Scene1, Scene2)
Open the new scene
SAVE
File > Build Profile
> Scene List
Go to Scene List:
Two ways you can add the new scene
to the box of Scenes in Build
e.g. belowAdd 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>
<aside> 🚨 You do NOT need to click Build and Run
</aside>
Create an empty gameObject that triggers Scene Transition
Create Empty
> Name SceneCollider
Add Box Collider
component to SceneCollider
(triggers Scene transition)
Check on is Tigger
Reset
the Box Collider’s Position 0, 0, 0
on Transform in the Inspector Window.
Relocate it on a desirable place where the player enters
Player Collides with this trigger and the scene transition will occur
Modify Box Collider Size: Go to Box Collider component and click Edit Collider
Locate SceneCollider
at a desirable position. (below a game object that Player will get near by and trigger the scene change )
Child a targeted gameObject for scene transition
Pick and Child a gameObject
under SceneCollider
I used a chair
Player
First Person Controller
Tag
your player as Player
C# Script
a Script
SceneTransition
Add the NEW Scene’s name to("_____")
<aside> 🚨 Write the CORRECT name of the New Scene on your Script
</aside>
add the SceneTransition
script to SceneCollider
the empty object
test Video