I’ve tried to find a scaler for my mobile game and I realized that I could just use the screen size and divide or multiply the width and height to get the location automatically scaled. This did work for my two GUI labels BUT, I didn’t take into account that the size on different resolution screens would look either too large or to small. Is there a way that I can change the size of the text so that it always looks the same on all screens? I apologize if this is a stupid question, as I am new to Unity. This is just my text code to create it on start (I took out some other stuff that wasn’t for the GUI).
public Font myFont;
public GUIText scoreTxt;
public GUIText highscoreTxt;
void OnGUI(){
GUIStyle myStyle = new GUIStyle();
myStyle.font = myFont;
GUI.Label(new Rect(Screen.height / 54,Screen.width / 21, 400, 200), "Score:" + score.ToString(), myStyle);
GUI.Label(new Rect(Screen.height / 23,Screen.width * temp, 200, 200), life.ToString(), myStyle);
}