Question by
Alex1McGrady · Apr 04, 2017 at 05:00 AM ·
gui.label
Gui.Label Not the same with android.
Hey guys
I'm trying to make a game and i have an image with the player stats(attack,defence,health...) and i want to print their variables next to each picture.The problem is on the pc is totally different than my android. Here is the view from my pc link text
Here is the view from my mobile phone link text
Here is the code
{
GUIStyle style = new GUIStyle();
style.richText = true;
//avatar kai stats paixti
style.fontSize = 25;
GUI.contentColor = Color.green;
GUI.Label(new Rect(250, 700, 200, 200), level.ToString(),style);
GUI.Label(new Rect(250, 740, 200, 200), attack.ToString(), style);
GUI.Label(new Rect(250, 780, 700, 200), def.ToString(), style);
GUI.Label(new Rect(250, 820, 700, 200), money.ToString(), style);
}
Any ideas?I want to be the same and if it possible in all android devices just as my pc's picture.
Thanks in advance!
Comment
Your answer
