- Home /
Missing parts when I build my game....
I set up a side-scroller/runner game and it works perfectly in the play panel of unity. But when I Build & Run my platforms and player disappear but my GUI is still there.
What is going on? (My game is based on the z-axis if that matters....)
EDIT: Comment and tell any other info you need to find out what is wrong.
Check that the Z Axis of the platforms and everything is in front of the background? Also that their are color contrasts and a light actually ai$$anonymous$$g at the side and not just from the top.
I used toonyshader so light is not an issue (is it?). Also, I didn't put a background yet, so that shouldn't be an issue either.
If you have any warnings or errors in console output, those would be helpful. Also see the log file produced by your build after the game is run for any problems.
I don't have any warnings or errors.... I checked the log and don't see anything wrong too....
Is there anything different with the object that disappear? Do you have any code that is destroying items that might be doing something wrong? Consider creating a script that monitor one or more of these objects and log to file if they become null. In that case, something surely is removing them during Awake or Start.
Answer by Statement · Dec 23, 2010 at 09:16 PM
Make sure you have selected the proper level(s) in your build settings. You might for instance at an earlier point in time made a test in a scene with the gui alone, and you might be repeatedly running that scene.
WOW. I'm such an idiot. I changed the name of my scene and never re-added it to the build settings. Sorry for wasting your time. Enjoy the easy points :P
Don't feel sorry. I find great joy in helping others. Otherwise I probably wouldn't be hanging around here ;) I can't really buy food with the points or use them in other ways. :) Glad your problem was solved!
Yah man, wish there were a million people as nice as you :P Thanks again for helping.
Ha! I just did this exact thing this morning, it's been driving me mental all day. I felt like a proper berk when I realised.
Your answer
Follow this Question
Related Questions
UnityEditor.BuildPlayerWindow+BuildMethodException: 2 errors 0 Answers
Game crashes after build. 2 Answers
Why is another game loading from my Xcode project? 0 Answers
Gradle error while building on Android 0 Answers
Unity WebGL build error help, 0 Answers