I’ve run into an issue upgrading a Unity project using FMOD for Unity. The version leaps are somewhat large; they are as follows:
1.10.09 → 2.02.11
2018.2.13f1 → 2021.3.19f1
The issue I’m facing is within the SetupWizard.cs script. It’s referencing something called StagingSystem on a few lines and Unity is unable to recognize it for some reason. Will attach a screenshot.
I’ve already tried importing FMOD for Unity multiple times to no avail.
When upgrading the FMOD version in Unity, from 1.10 in particular, there can be some console errors that require some files to be manually movedhttps://fmod.com/docs/2.02/unity/user-guide.html#upgrading-from-110
Thank you for the tip! I’m working through it now, but the FMOD Event Reference Updater tool doesn’t seem to be functioning normally. When I click “Execute 107 Selected Tasks”, the process runs for a split second and the Unity console throws this error:
“NullReferenceException: Object reference not set to an instance of an object
FMODUnity.EventReferenceUpdater.ExecuteGameObjectTask (FMODUnity.EventReferenceUpdater+Task task, FMODUnity.EventReferenceUpdater+SavePolicy savePolicy) (at Assets/Plugins/FMOD/src/Editor/EventReferenceUpdater.cs:1417)
FMODUnity.EventReferenceUpdater.ExecuteTask (FMODUnity.EventReferenceUpdater+Task task, FMODUnity.EventReferenceUpdater+SavePolicy savePolicy) (at Assets/Plugins/FMOD/src/Editor/EventReferenceUpdater.cs:1377)
FMODUnity.EventReferenceUpdater+d__45.MoveNext () (at Assets/Plugins/FMOD/src/Editor/EventReferenceUpdater.cs:654)
FMODUnity.EventReferenceUpdater.UpdateProcessing () (at Assets/Plugins/FMOD/src/Editor/EventReferenceUpdater.cs:1551)
UnityEditor.EditorApplication.Internal_CallUpdateFunctions () (at /Users/bokken/build/output/unity/unity/Editor/Mono/EditorApplication.cs:35”
Furthermore, every single event in the Updater tool appears to throw the same error when attempting to execute each task one by one.
The steps I took prior to this were:
- Open project in Unity; update Unity version
- Moved FMOD files as you recommended
- Opened FMOD project; followed upgrade prompt
- Restart Unity & follow through FMOD Setup Wizard; all successful except Event Reference Updater
It looks like we missed a file
Assets/Editor/FMODMigrationUtil.cs, this will also need to be deleted but that is a different issue to the error you mentioned.
What is the task that it says is required in the updater?
Are you able to share a screenshot of the Event Reference Updater?
Went ahead & deleted the file you mentioned. Attaching screenshots of the Event Reference Updater.
That all looks normal, I haven’t been able to repro the error but here are the steps I used:
- Import new FMOD package.
- Close Unity.
- Move files from ‘Editor’ folder.
- Delete ‘Assets/Editor’ folder.
- Open Unity.
- Follow prompts to restart Unity and move new libs.
- Next step in setup wizard, ‘reorganize plugin files’, process tasks.
- Next ‘Update Event References’, process tasks.
- Rescan and now no tasks.
Are you able to share your Unity editor log file at all? That may shed some light on what is causing this error.
Finally had a chance to come back to this & actually fixed it!
The reason the Event Reference Updater wasn’t working is because two FMOD-related C# script errors were putting Unity in a locked state. After adjusting the deprecated syntax of triggerCue() to keyOff() in two scripts, the project unlocked and I was able to freely run the Updater.
Thanks for your help & hope this helps someone some day!