
Unity Audio Occlusion Plugin
The Audio Occlusion Plugin for Unity makes your game audio sound more realistic by automatically adjusting sounds when they’re blocked by walls, terrain, or other obstacles. By adding the custom OccludedAudio component to any AudioSource, the plugin simulates how sound waves travel through your environment and muffles them accordingly—no need to manually place filters or zones. It works by converting your world into a voxel grid (a 3D block-based map), allowing it to calculate the clearest audio paths in real time. You can even preview this voxel representation by enabling Voxel Preview in the component's inspector. Key features you can customize: Audio range and decay rate Voxel resolution Ignored layers and colliders Looping and Play On Start settings An example scene is included at:Assets/AudioOcclusionPlugin/Example/Example.unity Use it to see how occlusion works with different objects and learn how to configure collision rules. Whether you’re building caves, cities, or complex i