Set first scene

Hi this must be really simple but I can't find it. I have created my game and now I'm adding a main menu start screen but when I build it always starts on the game screen.

How do I set which scene the first which is loaded on start up?

5 Answers

5

In the Build Settings, from the File menu, you can reorder your scenes. Make sure startup is at the top of the list.

Legend!!!!!!!!!

Just to add, use the mouse to drag and drop the scenes within in the list. It isn't obvious from the UI thats what you have to do on the Build Settings screen.

If you need to remove a scene from the list, pick one and press delete. It was not obvious for me :)

Another "not so obvious for me" tip: You actually can drag and drop all scenes at once to Scenes In Build ..you dont need to load scene, goto build settings and click Add Current. Thats how i did it until yesterday :)

Epic!!! ;-)

The Order in Build Settings doesn’t affect the Play Button at all.
It is only for when you actually Build/Export your Game.

Is there a way to affect the play button? I want it to always load a default scene

Double clicking on a Scene to make it the base scene seemed to work for me (which will make its name bold). however, no idea how to change the order of the rest of the scenes.

To temporary change the Play button`s first scene if u want to test another one: If double clicking doesnt work, u can disable other scenes with right click unload.

Hi there! I don't know if you still need a solution for this but I have created an editor tool myself which can help you start from any scene you want from the editor with one click. https://github.com/hangekinobaka/sleepy-scene-tool Let me know if you have any question about it!

It makes no sense at all that it’s still like this…

I'd like to upvote that.

Change camera priority.

How should it be?

If you have a NetworkManager, you must move that to the scene you want to be default. The default scene will be set to the scene with the NetworkManager regardless of the build settings.

just reorder it using the mouse drag and drop them in the build settings window

What if I have two scenes? First I need to load one, and then I need to load the second one. But the second one is the one that the user should see when the game starts.