Black screen on build run.

Hello everyone. Hope the unity community can shed some light on this.

I’m trying to build my game (a relatively big project) and I’m having problems. The game runs fine in the Unity Editor but upon running the builded .exe it just shows a black screen.

I tried removing everything except from the main menu UI, I tried building just a test scene, nothing works. The build always runs as a black screen.

The problem is present only since today, and I can’t seem to understand what caused it.

Has anybody had this kind of problem?

Yep, that was already checked.

I spent almost 5 hours on this bug, and I finally discovered what it was.

Apparently, if you have only one camera set up as “don’t clear” in the scene, the editor will give you no problem but the built executable will not show anything at all. Weird.

Unity should at least give an error or something.

Hi, might be a bit stupid question. Are you sure you are building correct scene? If yes are you sure correct scene is loaded first?

Same problem, as today, under 2020.1.2f12

Black screen into the game window, under play, and of course the build.

Any idea ? I’m not sure this forum as been refreshed about that question…

Take care everyone, i’m trying to find a solution.

weex

In my case I could temporarily fix the issue by somehow refreshing my screen (e.g. plugging in/out extended monitor).

However, the long term fix was realizing that one of my scripts was modifying my screen resolution too early (in awake) which caused something very similar to a black screen (with one visible line in the middle). So, for anyone with this issue you might want to double-check that you aren’t modifying your screen resolution too early in the launch.

PS: It might not be the same black screen… but I’ll still add this answer in case it helps someone.

Hi, All! First of all I’m new in here and want to discuss about unity issues and some other games issues during my game development and right now my game is stuck on black screen and it seems like my game is not loading while the game is running on unity editor but when I making a build for android and testing it in my phone then it shows me the black screen
Can anyone solve this issue.
Thank you!

Please, make sure that “Scenes in Build” is set properly in Build Settings

c# - How to open any specific scene when the game opens - Stack Overflow