FMOD Unity "Missing directive or an assembly reference"

I am using FMOD in the “Test Track” template from Unity 2021.3.38fi.

I am trying to mod scripts using the FMODUnity namespace but I always get errors that I am missing a directive or assembly reference. I have reimported and downloaded FMOD into the Unity project manager multiple times. I am not sure what is going on. I am mainly following this tutorial as a reference even though the “Test Track” template is a fair bit different.

https://fmod.com/docs/2.03/unity/integration-tutorial.html#setting-up-the-unity-project

This the sample template I am actually using:

https://developer.volvocars.com/3d/unity-template/

Example of specific errors:

Assets/External/VolvoCars/Scripts/Runtime/Controllers/DoorController.cs(29,10): error CS0246: The type or namespace name ‘FMODUnity’ could not be found (are you missing a using directive or an assembly reference?)

Hi,

What version of the FMOD integration are you using? Would it be possible to share the classes that are displaying the issue? Could I also grab a screenshot of the project directory:
image

1 Like

My project directory is attached.

The Classes that give me issues are: FMODUnity, FMOD, are the ones I have tried

And the integration version I am using is: 2.02.23

Thank you for sharing that.

Can you please try adding the FMODUnity.asmdef to the com.volvocars.public.vehicle_fundamentals.asmdef
image

Hope this helps!

1 Like

Thank you so much, that removed that error!!

1 Like