Search Unity

  1. Get all the Unite Berlin 2018 news on the blog.
    Dismiss Notice
  2. Unity 2018.2 has arrived! Read about it here.
    Dismiss Notice
  3. Improve your Unity skills with a certified instructor in a private, interactive classroom. Learn more.
    Dismiss Notice
  4. ARCore is out of developer preview! Read about it here.
    Dismiss Notice
  5. Magic Leap’s Lumin SDK Technical Preview for Unity lets you get started creating content for Magic Leap One™. Find more information on our blog!
    Dismiss Notice
  6. Want to see the most recent patch releases? Take a peek at the patch release page.
    Dismiss Notice

Documentation around order of excecution is misleading

Discussion in 'Documentation' started by felixfaire, Jul 4, 2018.

  1. felixfaire

    felixfaire

    Joined:
    Nov 6, 2017
    Posts:
    1
    The documentation states:
    • OnRenderObject: Called after all regular scene rendering is done. You can use GL class or Graphics.DrawMeshNow to draw custom geometry at this point.
    • OnPostRender: Called after a camera finishes rendering the scene.
    "after a camera finishes" and "when regular scene rendering is done" do not sufficiently explain this execution order (see this post). It should be made clear that the OnPostRender() of a camera will get called before the OnRenderObject() of an object being rendered with that camera. The reason why it actually does this is also a mystery as it doesn't make semantic sense; most users (myself included) would surely expect OnRenderObject() to happen Before OnPostRender(). It would be good if the documentation was at least clear about this 'quirk' so others dont waste as much time as I have trying to use these features.

    Best.
     
    Last edited: Jul 4, 2018