- Home /
Question by
aled96 · Apr 25, 2014 at 09:29 AM ·
guidrawtexture
GUI information
Hi, can i use GUI.DrawTexture not in OnGUI function ?
Comment
Not really, The GUI class must be called within the OnGUI method, or a custom Class, though if they are in your custom class then your custom class muct be called from OnGUI!
If you need to call them from elsewhere it is best to set us some boolean variables and set them to true when you want the GUI shown, then check for that in OnGUI. Alternatively Try using GUIText and GUITextures as they are more efficient and you can set them in any method.
Your answer
Follow this Question
Related Questions
How to get correct zooming in GUI.DrawTexture? 1 Answer
GUI.DrawTexture isn't centred. Help? 1 Answer
Another GUI question. HealthBar 1 Answer
DrawTexture on RenderTexture without Camera 1 Answer
Texture on center bottom of screen 3 Answers