Search Unity

  1. We are migrating the Unity Forums to Unity Discussions. On July 12, the Unity Forums will become read-only. On July 15, Unity Discussions will become read-only until July 18, when the new design and the migrated forum contents will go live. Read our full announcement for more information and let us know if you have any questions.

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:
    330