I have a book that gives tutorials in Unity 3D Game programming. When I compile and run to my iPhone I see that the OnGUI function is giving trouble. I saw in a post that OnGUI and GUILayout should be avoided in iPhone game development.
My question is:
How do I NOT use the function OnGUI? These tutorials show lots of Unity 3D game examples using it. Is there a substitute function? I am calling certain functions within OnGUI so what is the alternative?
Help Please