I want to make the position of my gui label fixed in any android screen size, how can i do that ?
My Code:
#pragma strict
function Update () {
if(Input.GetKey(KeyCode.Escape)) {
Application.LoadLevel("mainscreen");
}
}
function OnGUI() {
var aquireScore = PlayerPrefs.GetInt("Score").ToString;
GUI.color = Color.black;
GUI.Label(Rect(Screen.width/1.1f, Screen.height/1.1f, 100, 50), "hey"); //hey is just for testing
}
but it doesn’t show up