Hi, i have this code so far
static var gscore : int = 0;
var menuStyle: GUIStyle;
function OnGUI () {
GUI.Label(Rect(78, 10 , 100, 100),"<color=white><size=25>"+gscore+"</size></color>");
}
and it works really well for my simple game but the problem is when i try to run it on my smartphone the text moves and its not on the same place as on the PC im pretty sure i have to use the new UI and i have to use the anchors but i really have no idea how i can implement it any help will be...
Using the new UI for score counter
static var gscore : int = 0;
var menuStyle: GUIStyle;
function OnGUI () {
GUI.Label(Rect(78, 10 , 100, 100),"<color=white><size=25>"+gscore+"</size></color>");
}
and it works really well for my simple game but the problem is when i try to run it on my smartphone the text moves and its not on the same place as on the PC im pretty sure i have to use the new UI and i have to use the anchors but i really have no idea how i can implement it any help will be...
Using the new UI for score counter