Question by
panwarabhishek345 · Sep 24, 2016 at 08:19 AM ·
c#androidgui
GUI Label not showing up on Android device while works perfectly in Unity
I used GUI.Label to output Score variable on the screen. It works perfectly in Unity but when I build the apk and run it on my Android, the whole game is fine but the score doesn't appear. I a new to Unity and C# so please explain why is this happening?
Comment
$$anonymous$$ake sure the position you are using isn't outside the bounds of your screen. Different devices will have different resolutions.
@Namey5. If the position would have been wrong then it should not have shown in unity as I have used the same portrait resolution as my phone has.
$$anonymous$$aybe because you use certain special font not present on your phone. Did you try a vanilla GUI.Label(new Rect(10,10,100,20), "Hello");
?