Quantcast
Channel: Latest Questions on Unity Answers
Viewing all articles
Browse latest Browse all 171066

Weird GUI Error! Working To Deadline

$
0
0
Im getting an error saying I can only call GUI functions from within GUI, but it is! function OnGUI () { GUI.skin.font = fontBig; GUI.Label(Rect(10,10,200,100),"Round " + round); GUI.Label(Rect(10,Screen.height - 50,200,100),"Health: " + currentHealth); GUI.Label(Rect(Screen.width - 180,Screen.height - 100,200,100),currentGunName); GUI.Label(Rect(Screen.width - 100,Screen.height - 70,200,100), clip.ToString()); GUI.skin.font = fontSmall; GUI.Label(Rect(Screen.width - 100,Screen.height - 50,200,100),"Ammo: " + ammo); }

Viewing all articles
Browse latest Browse all 171066

Trending Articles