Add room effects

Once you have sound sources using Resonance Audio spatialization within your project, you
can add room effects to your scenes.

The following C# scripts let you control room effects in your
Unity project.

FmodResonanceAudio.cs

FmodResonanceAudioRoom.cs

FmodResonanceAudioRoomEditor.cs

To add room effects to a scene:

Add the ResonanceAudio folder to the ($UnityProject)/Assets/ folder.

Attach the FmodResonanceAudioRoom component to a GameObject in your scene.

Adjust the room properties as needed. Make sure
that the Resonance Audio Listener and your Resonance Audio Sources are inside the selected
room boundaries for the corresponding room effects to be applied.

A Unity Gizmo
appears in the Scene view to show the spatial boundaries of your
ResonanceAudioRoom.

You can add any number of Resonance Audio Rooms to a scene. As the game object with the
FMOD listener script attached moves around the scene, room effects react
smoothly in real time. The room effects update according to the room, listener,
and any Resonance Audio Sources that are currently within the room.

Deploying the plugins on iOS using Unity

To deploy on iOS:

After completing the previous steps, modify
($UnityProject)/Assets/Plugins/FMOD/fmodplugins.cpp to uncomment the
following declaration at the top of the file:

Unreal Integration

To use the Resonance Audio FMOD plugins in Unreal Engine:

Move the Resonance Audio binaries for the relevant platforms into one of the following directories:

Your Unreal project’s Plugins/FMODStudio/Binaries/<platform> directory.
Caution: Use this option if you
are deploying your project on Android. The FMOD plugins will not load
during deployment if they are not in the project folder.

Create a file named plugins.txt within your game folder under
Plugins/FMODStudio/Binaries/<platform> for each platform
to which you are deploying. Each file should contain the name of the
plugins you are using. To use the Resonance Audio plugins the file should include
only the word resonanceaudio.

Deploying the plugins on Android using Unreal

To deploy on Android:

After completing the previous steps, add a file named
resonanceaudio_APL.xml to Plugins/FMODStudios/Binaries/Android/.