- Home /
OnGui doesn't work
Hi, I'm tryng to use the GUI but seems everything changed, I tried to add a simple button as a text, and MonoDevelop doesn't show me any commands
I can't get any references for any types of GUI, I tried GUI.Label GUI.Box etc. and nothing, I am doing something wrong?
Answer by konsnos · Aug 21, 2014 at 02:24 PM
This is because you named your class GUI. And having nothing inside it (except a private function) it doesn't show anything. Rename your class to get the GUI library functionality.
Answer by PvTGreg · Aug 21, 2014 at 02:26 PM
going by the title of the post its OnGUI not OnGui
i did the same not long ago.. something so easy to forget
Your answer
Follow this Question
Related Questions
GUI Text to GUI Label Script? 1 Answer
GUI Text Component Rotate ? 1 Answer
How to change font size in ongui function 0 Answers
Relative GUI positioning and Pixel Inset/Offset conversion 2 Answers
How to use line break for GUI.Lable 1 Answer