EOC – ECS Occlusion Culling
Works with ... Package check: lists missing or outdated packages instead of failing with compile errors ... In the demo view, triangles drop from 56.1 M to 25.6 M with culling on, and to about ...
by KHALM
Price History +
EOC adds occlusion culling to Unity Entities Graphics (URP/HDRP): it hides entities fully hidden behind other geometry, cutting draw calls and triangles in dense scenes. No setup needed.
- Occlusion culling for Entities Graphics renderers, with no per-object setup
- URP and HDRP, Unity 2022.3 LTS to Unity 6.5, Entities 1.0.8 and newer (tested matrix in the manual)
- Works with Fast Enter Play Mode (domain and scene reload disabled)
- Burst-compiled, multi-threaded culling job
- Hides an entity by switching an enable bit, not by restructuring entity data
- Shadow-safe: never hides anything within the shadow distance plus 10 m
- Conservative: hides only what is completely covered, and hides nothing in a frame where the camera jumped or the depth image doesn’t line up
- Package check: lists missing or outdated packages instead of failing with compile errors
- Simple API: EOC.Enabled, EOCFrame.HiddenCount, EOC.RegisterDepthSource
- Demo scene with a live stats panel (hidden entities, draw calls, SetPass calls, triangles)
- Full C# and shader source, offline PDF manual
- No third-party code or art
EOC is a runtime tool for any project that renders with Entities Graphics on URP or HDRP. It’s not tied to a genre: cities, interiors, open worlds, strategy and simulation games with many objects benefit most, because large objects hide many smaller ones.
- Customizable: you can switch culling on and off from code, the Tools menu, a hotkey or a launch argument.
- Extensible: you can add support for another render pipeline through a small adapter interface (IEOCDepthSource).
- Full source: C# and shaders are included.
- Demo: a procedurally generated city (297 buildings, 891 renderers) with a toggleable wall shows the effect live. In the demo view, triangles drop from 56.1 M to 25.6 M with culling on, and to about 4.8 K with the wall in front.