I’m having an issue with creating a spawn point after a level has loaded. So basically, after level 1, it loads level two and loads the default spawn, then after a bonus level, its suppose to return to the 2nd level but with a different spawn. however it keeps using the default spawn. heres my script:
Put the information about what spawns and what doesn’t and where in a script on an empty GameObject, and then in your preloader scene (in its start function) use
DontDestroyOnLoad(gameObject);
to stop it getting despawned every time you load a level.
This way you can carry data between scenes, without having to do something cumbersome like use PlayerPrefs.