- Home /
Can't Change Scenes When Built
Hi, I just recently ran into a major problem in my project. It seems that I just cannot switch scenes on a built project. I am using buttons from my main menu to switch to the different scenes, like any other game. When ran in the editor, it works fine, but when I build it to any platform, simply nothing happens when you click the buttons that would normally work in the editor. I have tried updating Unity to the newest patch, trying to build from another computer, nothing works. Any help would be awesome, thanks!
Answer by Mergster · Jul 03, 2017 at 10:05 PM
Do you have your scenes set up in your build settings?
Answer by AcePilot10 · Jul 03, 2017 at 10:15 PM
@Mergster Yes, in the editor it works fine.
But you're sure that you have your scenes correctly added on the Build Settings(ctrl-shift-b)
@$$anonymous$$ergster yes, I am sure. It worked fine before, but just recently it randomly stopped working.
Hmm, I dunno what's going on then. $$anonymous$$aybe you have a problem in your scripts..
Answer by tuinal · Jul 17, 2020 at 12:28 AM
Build in debug mode so you can see the errors in the console, it's likely an exception is being thrown. If you can find out what the error is it will be easier to find help.
If the console is not showing a single error that would be very unusual, scenes can fail to load 'under the hood' in built vs editor due to asset size limits and things like that but you'd expect a crash in that case.
Your answer
Follow this Question
Related Questions
after click a GUI button from Menu to Game there are two screens 1 Answer
It's impossible to async load a scene then have it wait while unloading another? 2 Answers
Reload a scene without closing the inspector and hierarchy 0 Answers
How to set the position of an object in another scene? 1 Answer
How do I edit a second scene when my objects are still in the first? 1 Answer