- Home /
Where do I assign GUI scripts?
I'm making a game using the GUI
section of Unity, and I've written a script using calls to GUI.drawTexture
and similar, but where I'm not sure where to actually assign the script so it will be executed! Thanks in advance - I know this is a bit of a stupid question.
Comment
Best Answer
Answer by Kiloblargh · Jun 03, 2013 at 05:56 PM
In the OnGUI() function. It doesn't really matter where the script itself is (on the main Camera is traditional), you just have to put all your GUI stuff in OnGUI() or it won't work.
Your answer
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Noob Question! Unexpected token: if. 1 Answer
How to Hide the GUI when time.scale = 1 again 1 Answer
1st time to use Unity can help me with this simple project? 0 Answers
Uhhhh... 2D Maze Generator Help! 3 Answers