- Home /
OnGui not getting called
i was trying to test the built in gui but it will still isn't getting called
var collected = 1;
var total = 1;
function OnGui ()
{
GUI.Box (Rect (0,0,100,50), collected + " of " + total);
Debug.Log("working");
}
i already attached it to a game object set said game object's position to (0, 0, 0) and made sure my camera had a gui layer, and i still cannot figure out why it wont call.
Comment
Your answer
Follow this Question
Related Questions
Any simple examples for creating a tabbed menu? 4 Answers
Having trouble getting text to show up. 0 Answers
I get a weird error when i try to use GUISkin on a timer 1 Answer
Where do I assign GUI scripts? 1 Answer
Smoothly transform gameobject to specific coordinates with the click of a GUI 1 Answer