Force scene to load first in editor

Hey there,

I need to create a scene that loads some scripts before the rest of the game starts so i thought the best way to do this would be to create a splash or loading screen that loads these then loads the main game scene after. This is because the main game scene has some stuff that needs to be in the awake function but this also needs the previous scripts to be loaded first.

I don’t want to have to keep changing scenes to test my game so is it possible to force another scene to load first no matter what scene you click play in editor from?

Also if this is the wrong way to do it what is a better method?

Thanks

Id suggest having a singleton prefab in each scene with these scripts, so when it starts, it looks for other existing instances, and if it finds any oother just remove itself.

basically put the contents of your splash screen scene in this prefab, and using code execution order make sure the needed scripts run first

What I do is have an init scene, with this, you could put up a splash. In the awake, you name the objects you want DontDestroyOnLoad, then in start, you load the next scene. The next scene is a public variable so you can just change it as you are working on your game in the editor for the script, attached to an empty. You just set the init scene as your start scene in the editor. Later on, that next scene would end up being the menu. When you are testing your game, you always start at the init scene, otherwise it will get messed up if you start in another scene, and you have to use Find to get your manager in the start menu of a script because it’s not in the scene until the game starts. You don’t need to do the singleton stuff unless you are going back to the scene again, which shouldn’t be happening.

Thanks.

Will take a look at both of these and see which works for me