Obstruction and Occlusion
It is possible to obstruct or occlude sounds in Unity. See the following sections for details:
A. Emitter Obstruction/Occlusion
An emitter can be obstructed or occluded in Unity when the Ak Emitter Obstruction Occlusion component is added to its GameObject. When your map doesn't use spatial audio, that is it doesn't have any Ak Room components, the Ak Emitter Obstruction Occlusion component will only use occlusion. In a spatial audio scene, this same component will use obstruction with the spatial audio listener only; the GameObject with the Ak Spatial Audio Listener component. Emitter obstruction is applied to emitters that are in the same room as the spatial audio listener.
- Add an Ak Emitter Obstruction Occlusion component to Button Outside.
- In Layer Mask, select layers that would block audio. In the SpatialAudioTutorial scene provided with the integration, we have put the first person character on a user created layer called "Player". This layer is not selected in the Layer Mask option.
Ak Emitter Obstruction Occlusion component
Layer Mask options for the Ak Emitter Obstruction Occlusion component
- In Layer Mask, select layers that would block audio. In the SpatialAudioTutorial scene provided with the integration, we have put the first person character on a user created layer called "Player". This layer is not selected in the Layer Mask option.
- Play the scene.
- Play Button Outside.
- Go behind the Barrier GameObject to hear it occluded or obstructed depending on the presence of any GameObjects with the Ak Room component in your scene.
B. Portal Obstruction
Sound emitted through portals can also be obstructed. Use the Ak Room Portal Obstruction component on a game object with an Ak Room Portal component to do so. See section Rooms and Portals Tutorial to add rooms and portals to your scene, if not done already.
- Add an Ak Room Portal Obstruction component to Outside Portal.
- In Layer Mask, select layers that would block audio. In the SpatialAudioTutorial scene provided with the integration, we have put the rooms on a user created layer called "Audio Rooms". This layer is not selected in the Layer Mask option.
Ak Room Portal Obstruction component
Layer Mask options for the Ak Room Portal Obstruction component
- In Layer Mask, select layers that would block audio. In the SpatialAudioTutorial scene provided with the integration, we have put the rooms on a user created layer called "Audio Rooms". This layer is not selected in the Layer Mask option.
- Play the scene.
- Play Button Small Room.
- Go behind the Barrier GameObject to obstruct the portal.
Generated on Mon Jan 8 10:46:14 2018 for Wwise Unity Integration by 1.6.3