- Home /
Game Screen fully black On mobile
Hello, i made a little easy UI, where you have a button, and it changes the background color, it works fine while playtesting, but when exported on mobile, after the unity splash screen, i get a black screen.. any ideas what might cause this? I have a huawei Y6 Prime 2018.
Answer by ryanmillerca · Oct 14, 2021 at 02:36 PM
Could be a lot of things! In this situation I encourage you to make a development build and look at the logs from the device to understand what's going on. Here's a link to help you set that up: https://forum.unity.com/threads/how-to-capturing-device-logs-on-android.528680/ Possible problems you're running into are a script error, project settings that don't fit the device, or a graphics rendering error. When stumped, I usually try to build a new and very basic Unity project the device, and assuming that works, figure out the difference between the fresh project and the problem project.
Thanks for the help, I tried looking at the things wich command prompt threw at me but i couldnt make any sense in it.. I made a new scene wich worked on the phone, so i figured the problem has to be somewhere in the ui....
Try attaching the frame debugger, see what's being rendered