When is Time.frameCount incremented?

Viewed 1970

Unity3D offers many per-frame callbacks, the most used being Update. There are also lesser-used ones like OnWillRenderObject, OnRenderObject, and OnPostRender. With respect to the order in which these callbacks are called, when is Time.frameCount incremented?

I'm trying to synchronize frame-grabs I'm capturing after rendering completes with object properties recorded from other callbacks in that frame. I found that when OnPostRender is called, Time.frameCount has already been incremented, so that the frame I'm being notified of is actually the previous frame. For this reason, I'd like to know what other callbacks are called after the frame count has been incremented.

2 Answers
Related