Unity Integration: 'FMODEventPlayable' could not be found

The error in the title seems to originate from e.g. lines 314 and 316 in EventReferenceUpdater (and other lines in the same file):

else if (target is FMODEventPlayable)
{
   return GetPlayableUpdateTasks(target as FMODEventPlayable);
}

but FMODEventPlayable only exists if #if (UNITY_TIMELINE_EXIST || !UNITY_2019_1_OR_NEWER) and I don’t have the timeline enabled.

I think this could be fixed by adding the same check here:

#if (UNITY_TIMELINE_EXIST || !UNITY_2019_1_OR_NEWER)
            else if (target is FMODEventPlayable)
            {
                return GetPlayableUpdateTasks(target as FMODEventPlayable);
            }
#endif

and at the other places in the same file. Unity then seems to compile fine, but I’m not a 100% sure I’m not breaking something.

I am using Unity integration 2.02 with Unity 2021.1.3f1.

Thank you for reporting this, I have added a task to fix this in an upcoming update.

1 Like