Quantcast
Channel: UGUI & TextMesh Pro
Viewing all articles
Browse latest Browse all 23263

Using the new UI for score counter

$
0
0
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

Viewing all articles
Browse latest Browse all 23263

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>