User interface on an Android device

I have a simple default button with text, it looks great on Unity, but when I create it on my Android phone, I get a pink line instead of a button and no text. My button doesn't have any shaders (this is the default button with no changes to it other than the function).

I have no idea what is causing it, it probably has to do with shaders, but I am not using it.

Unity version: 5.5.2f1

Android: 6.0.1

+3


source to share


1 answer


This is a bug, but workarounds are possible:

1 . The user interface is probably missing its default shader. Re-add it from the editor.

Go to Edit ---> Project Settings ---> Graphics ---> Inline Shader Settings.

Resize to 7 , then add each shader to it. Below is an image of what it should look like:

enter image description here

2 . Disk drive 32-bit display buffer



You can do this by going to

File ---> Build Settings, select Android, then go to Player Settings ---> Resolution & Presentation then uncheck "Use 32-bit display buffer".

enter image description here

If that solves the problem, update Unity to the latest version (5.6), then go back to these settings and enable it.

3 . The maximum texture size used for the button is too large. Reduce it to 1024 or less. Most of the time there is no problem with 2048, but don't let the size get bigger than Android.

enter image description here

+5


source







All Articles