Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Question Occlusion Culling & Graphics.DrawMesh

Discussion in 'General Graphics' started by chris_hellsten, Jul 8, 2021.

  1. chris_hellsten

    chris_hellsten

    Joined:
    May 5, 2014
    Posts:
    12
    Is it possible to have calls to Graphics.DrawMesh culled by the scene's baked occlusion data? I have baked occlusion data in the scene with static GameObjects but at runtime I am using Graphics.DrawMesh (not GameObjects) to render my occludees and it appears like occlusion culling is not working for those calls (although I'm struggling to verify this as all the visualisation tooling seems to be quite reliant on GameObjects).

    If it's not possible to get this working is there any public API for querying the baked occlusion data manually? I can't see any reference in the docs to occlusion and C#.

    Thanks
     
  2. Przemyslaw_Zaworski

    Przemyslaw_Zaworski

    Joined:
    Jun 9, 2017
    Posts:
    327