Search Unity

  1. All Pro and Enterprise subscribers: find helpful & inspiring creative, tech, and business know-how in the new Unity Success Hub. Sign in to stay up to date.
    Dismiss Notice
  2. Dismiss Notice

OnWillRenderObject for Scene View in Prefab Stage

Discussion in 'Prefabs' started by bac9-flcl, Nov 14, 2018.

  1. bac9-flcl

    bac9-flcl

    Joined:
    Dec 5, 2012
    Posts:
    808
    As far as I see, OnWillRenderObject is not being called in the Prefab Stage for the Scene viewport. This is very different from behavior of Scene viewport in traditional main stage of Edit mode, where every object received OnWillRenderObject calls. To reproduce this, make sure to hide the Game View and simply add some logging to a OnWillRenderObject function.

    Is that a bug or an intentionally introduced difference?

    Edit: Disregard that, the issue was simply caused by an object I was expecting to render sitting in the main stage instead of the prefab stage. That was the reason for absence of OnWillRenderObject calls - Scene view locked to prefab stage never interacted with it.
     
    Last edited: Nov 14, 2018
unityunity