Basically I’m trying to figure out how to change the starting scene, I know it needs to be first in build settings but I want a different start scene based on scripts that have been triggered throughout the game, For example:
When you first download there’s startup 1, The player triggers a script in a scene, the script changes what startup scene there is. that’s startup 2
Basically here’s how I want it to work:
Startup 1. Player does something, from then onwards when the game starts up its startup 2. Anyone know how this might work
- Create an empty starting scene which will be the real starting scene of the game (index 0 in the build settings)
- Add an empty gameObject with a script
- This script will be responsible for loading the appropriate scene according to some data you will load (PlayerPrefs / save file / database / …)
- In your game scenes, when the desired event occurs, save the information indicating the first or second scene must be started
You will find a lot of resources for the steps 3 and 4 to save and load data.
Your very first scene should load quickly and won’t be visible when playing the game since the other scene should load right away. If it’s not the case, you can adjust some parameters on the camera to show a colored screen or you can even have a loading screen.