Quantcast
Viewing all articles
Browse latest Browse all 41

Not correct OnGUI documentation

http://docs.unity3d.com/ScriptReference/EventType.Repaint.html *All other events are processed first, then the repaint event is sent.* But my test showed me another! **Upd** Layout 0 **Repaint 1** Layout 2 mouseDrag 3 Layout 4 KeyUp 5 Layout 6 mouseDrag 7 **Upd** *Repaint event are processed first, then the Other events is sent.* My Code: int V = 0; void Update () { Debug.Log("Upd"); V = 0; } void OnGUI() { Debug.Log(Event.current.type.ToString() + " "+ V); V++; } Why?

Viewing all articles
Browse latest Browse all 41

Trending Articles