- Home /
Question by
Bitpocketer · Sep 06, 2014 at 10:29 PM ·
c#gui
What is frame, How OnGuI is called every frame?
Hi, I'm a newbie to the unity environment, trying to understand unity scripting API with .netFramework. I came across a method known as OnGUI which by default gets called every frame. Now i Don't understand the concept of Frame,I need to understand the mechanism behind the calls to this function.Please some one explain that anything written inside this function is rendered once or repeatedly as the function's nature is iterative.
Comment
Answer by orb · Sep 07, 2014 at 02:03 AM
A frame is a screen update. OnGUI() is called every time the screen refreshes.
Answer by cdrandin · Sep 06, 2014 at 10:31 PM
http://docs.unity3d.com/Manual/ExecutionOrder.html
towards the bottom is a flow chart