Answered
0
0

The following error is generated when I build an Android project with fmod studio. This error is not produced in 1.09.04 so you can use that as an alternative in the meantime.

Assets/Plugins/FMOD/RuntimeManager.cs(576,29): error CS0120: An object reference is required to access non-static member `FMODUnity.RuntimeManager.loadedBankRegister(FMODUnity.RuntimeManager.LoadedBank, string, string, bool, FMOD.RESULT)’

Steps to reproduce:
Download Fmod studio 1.10.XX
Download Fmod Unity 1.10.XX
Open fmod project
Create 3D event, add audio clip with loop region, assign to master bank.
Build for all platforms.

In Unity:
Create new project
Import integration 1.10.XX
Assign fmod project
Create event emitter and assign event
Add studio listener to camera
Switch platform to android
Add scene to build path
Build

  • You must to post comments
Best Answer
1
0

This issue has been fixed for the next release, the change can be found on our github page:
https://github.com/fmod/UnityIntegration/commit/db2c90ed3bc8d17d9a2c069381d89678e63424f3

The function should have been accessed through the ‘Instance’ of the RuntimeManager.

Instance.loadedBankRegister(...

  • Jakub Kopriva

    This fix worked for me. Do you have any roadmap/date when this will be availabe in release?

  • Cameron Baron

    This fix will be in the next release, due at the start of May.

  • You must to post comments
0
0

Edit: if you comment that line, Unity is building and build is working fine.

Same problem here, Unity2017.3.1f1.
Assets/Plugins/FMOD/RuntimeManager.cs(576,29)…

I can’t 1.09.04 – console is informing me that the code is obsolete, when I change one obsolete line I got 25 next errors.

  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.