Quantcast
Channel: Questions in topic: "correction"
Viewing all articles
Browse latest Browse all 41

Not correct OnGUI documentation

$
0
0
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



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>