We are updating some shared audio code that is used across many projects which use FMOD. As FMOD changes and things like StudioEventEmitter.Event get replaced with StudioEventEmitter.EventReference, I would like to be able to use preprocessor directives to compile different code paths based on the version of the FMOD plugin that our projects are using. For example:
#if FMOD_PLUGIN_2_02_OR_NEWER
audioEvent = FMODUnity.RuntimeManager.CreateInstance(eventEmitter.EventReference);
#else
audioEvent = FMODUnity.RuntimeManager.CreateInstance(eventEmitter.Event);
#endif
This would be great!