After building the App, I am greeted by a black screen

Hello there, I am new in unity and was finalizing my software by building it. However, after building the software, installing it into the application, it’s just black. The buttons and everything are there it’s just not visually present. This is one of my project that has vuforia engine and for android specifically. I spent a whole day trying to solve this and I can’t seem to see a solution. I’ve tried unchecking the Graphics API, resetting the rendering, and the order of scenes are I think is correct.

One temporary solution that I noticed is that when I change scene and try to minimize and reopen it, the visuals are seen now and is present. What seems to be the optimal way to solve this kind of problem? It’s almost due and I really need it to work properly.

Sounds like you wrote a bug… and that means… time to start debugging!

First place to stop is the runtime logs for your game. Hurry to google to see where they are on your system.

Next is find out if anything is actually running: added scene, added scripts , loading things successfully, etc.

You must find a way to get the information you need in order to reason about what the problem is.

Once you understand what the problem is, you may begin to reason about a solution to the problem.

By debugging you can find out exactly what your program is doing so you can fix it.

Use the above techniques to get the information you need in order to reason about what the problem is.

You can also use Debug.Log(...); statements to find out if any of your code is even running. Don’t assume it is.

Once you understand what the problem is, you may begin to reason about a solution to the problem.

Remember with Unity the code is only a tiny fraction of the problem space. Everything asset- and scene- wise must also be set up correctly to match the associated code and its assumptions.

Be sure to check the player.log for any errors. And make a development/debug build.

Did you resolve this? I have a similar issue. It started happening when I upgraded to 2022.3 LTS version. I tried further upgrading to Unity 6 but the same issue occurs, even in 6.3 LTS. I’ve tried adding a basic scene and adding code to trigger a refresh but nothing works except toggling out of the app and back in. Then it works. Obviously this is an unacceptable work around. It would be great if anyone could suggest a specific thing to try to resolve this. I have tried adding debug info, checked the pipeline, camera, created new fresh scenes, used previous scenes that also worked. If I create a new project it is also fine so it is not the system. I’m guessing something in the project or upgrade process. Thanks.

I guess you didn’t try what I suggested to OP above? Start with the logs, the move onto basic debugging?

That’s patronising! Logs and debugging is the basics. I stated I already had done that. The purpose of a forum if to ask if anyone has experienced an issue and resolved it. If you haven’t then you have no useful knowledge and shouldn’t waste others time with petty posting.

Here’s your post… please point out where you said this.

I live and die by the information I get back from logs.

But by all means, you do you.

I stated a “specific thing to try” as I had already seen your less than useful post and hoped to avoid this very conversation. Yes, use logging and debug. Very insightful! It’s like saying test things and see if that fixes it. The point of a forum response is to provide something of worth above the obvious and also save others from excessive debugging if they have already experienced something similar. This is a post with someone having the exact same issue so I could save time speaking with them. It doesn’t help speaking with you if you have no experience in the issue.

1 Like