Version

menu_open
Warning: you were redirected to the latest documentation corresponding to your major release ( 2023.1.8.8601 ). Should you wish to access your specific version's documentation, please download the offline documentation from the Audiokinetic Launcher and check the Offline Documentation option in Wwise Authoring.
Wwise Unity Integration Documentation
Using AkEmitterObstructionOcclusion from the Inspector

Add an AkEmitterObstructionComponent to a GameObject to obstruct/occlude it from a listener if there is another object in the path between them.

When the emitter is obstructed or occluded, the AkEmitterObstructionOcclusion component will call SetObjectObstructionAndOcclusion() with a value of 1. Define the obstruction (Obstruction Volume, Obstruction LPF, and Obstruction HPF) and the occlusion curves (Occlusion Volume, Occlusion LPF, and Occlusion HPF) in your Wwise Project Settings.

When your map doesn't use spatial audio (that is, it doesn't have any AkRoom components), the AkEmitterObstructionOcclusion component will only use your Wwise-defined occlusion curves. Conversely, if your map uses spatial audio, then the GameObject will only use your Wwise-defined obstruction curves.

  • Fade Time: The number of seconds for fade ins and fade outs.
  • Layer Mask: Indicates which layers act as obstructers/occluders.
  • Max Distance: The maximum distance at which to perform obstruction/occlusion checks. A negative value will be interpreted as inifinite distance.
  • Refresh Interval: The number of seconds between obstruction/occlusion checks. If 0, obstruction/occlusion checking continues non-stop.
Note:Do not use AkEmitterObstructionOcclusion if using spatial audio diffraction.
See also

Was this page helpful?

Need Support?

Questions? Problems? Need more info? Contact us, and we can help!

Visit our Support page

Tell us about your project. We're here to help.

Register your project and we'll help you get started with no strings attached!

Get started with Wwise