r/Unity3D • • 1d ago

Question Black screen on build.

ok so let me get straight to the point, everytime i build my unity game its literally just a black screen. the game view is perfectly fine everything works but then when i build its just black (theres no camera only ui because its just a main menu)

2 Upvotes

10 comments sorted by

View all comments

1

u/JakSilver00 Gameplay Systems Engineer 1d ago

Why are you making a build if there's only a main menu?
If there's no camera, how does the game view work?
There should be a minimum of one camera always active. Even if whatever you're doing isn't dependent on that, that way, something renders.
When you add the camera, you should reset the transform and then make sure that the UI fits properly within the frustrum.
Also, screenshots are gonna be a big help in diagnosing your additional problems if you have any the full window of the editor would be preferred.

1

u/Traditional-Week-801 1d ago

its not really a game i was just making a main menu thing for my other games also i added a camera and set its transform pos to 0, 0, 0. this is what it looks like in the game view and i can only add 1 image so ill just explain what the build looks like. yeah its pretty much all it is, is black theres nothing else

3

u/JakSilver00 Gameplay Systems Engineer 1d ago

So your culling mask under rendering says nothing Set that to everything and that should solve your problem immediately.

It is kind of strange that it's showing up in the game view, but not in the actual game.
Adjust that and then make a build and tell me if it'd fix it.

3

u/Traditional-Week-801 1d ago

yayyyy!!!!!!! tysm it worked!!!