- Home /
Does WaitForEndOfFrame include the post-processing image-effects passes?
Official docs only say:
Waits until the end of the frame after all cameras and GUI is rendered, just before displaying the frame on screen
If the sentence is meant to be exhaustively 100% accurate, and they actually do mean the final (after all intermediate render-to-texture passes etc.) render surface with "screen", OK. But can someone confirm this? I mean, documentation writers sometimes aren't aware of in-depth fringe stuff like this, right?
Reason I'm wondering: MonoBehavior
s can have both OnPostRender()
and OnRenderImage()
event functions. I can't figure out whether WaitForEndOfFrame
corresponds to the former or the latter. Anyone in the know on this one?
Have you tried having a debug message in each to see which order they're output?
It''s unfortunate that we'll probably never know the answer to this :/
Answer by WarmedxMints · Apr 01, 2019 at 01:36 PM
It is after both OnPostRender and OnRenderImage. The manual has a flow chart of how unity orders things - Look at the bottom of this page
Your answer
Follow this Question
Related Questions
yield return null vs yield return WaitForEndOfFrame 4 Answers
Get static var inside coroutine (C#) 1 Answer
Sequential Coroutines sometimes halt 1 Answer
Coroutine exits as soon as called 2 Answers
Coroutine does nothing sometimes. 1 Answer