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.
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.
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!