How do i change the alignment on the following thing to MiddleCenter??
GUI.Label (new Rect(scrPos.x, Scr.height-scrPos.y, size, size), str, GUIStyle.alignement.TextAnchor.Middlecenter);
How do i change the alignment on the following thing to MiddleCenter??
GUI.Label (new Rect(scrPos.x, Scr.height-scrPos.y, size, size), str, GUIStyle.alignement.TextAnchor.Middlecenter);
The easiest way to use a GUIStyle in a script is to declare a public variable of that type. That way, you can just change the settings in the inspector.