0
\$\begingroup\$

Squishing bugs on my first game currently, came across a problem I'm not sure what could cause.

When the game is launched there is simply a black screen before even the unity logo shows up, the duration is about 5 seconds. Checked on 2 devices: S6 and 1st gen Moto X, the duration is about the same.

The scene loaded on start-up is a simple menu with almost no logic, just some buttons.

I am using the Unity Google Play plug-in, could it be somehow connected with this issue?

\$\endgroup\$
1
\$\begingroup\$

The problem was caused by it being a development build with script debugging, a normal build works as expected.

\$\endgroup\$
  • 2
    \$\begingroup\$ A dev build with script debugging on should work fine. There's something weird going on. \$\endgroup\$ – Almo Mar 26 '18 at 19:46
  • \$\begingroup\$ Check if Unity override the AndroidManifest.xml file. \$\endgroup\$ – Hammerh5 Oct 7 '18 at 2:29
0
\$\begingroup\$

A somewhat hilarious yet very real situation:

My blackscreen was caused by the fact that I had a canvas or camera with the "EditorOnly" tag. Removing this tag made the objects work correctly during the actual builds, and the black screen was no more.

\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.