FMOD new instance flow is not working

Hey,

I’m trying to run some track in my game flow and stop it at the end,
but I can run the sound just with RuntimeManager.PlayOneShot().
I’ve tried to created an instance from the path and use the start() method.

in the class:
private FMOD.Studio.EventInstance _music;

then I initialize the instance at Init():
_music = RuntimeManager.CreateInstance(“event:/Music”);

running it at the game base:
_music.start();

at the end method:
_music.stop(FMOD.Studio.STOP_MODE.ALLOWFADEOUT);
_music.release();

Warning:
[FMOD] Instance of Event event:/Music has not had EventInstance.set3DAttributes() called on it yet!

thanks.

1 Like

_music.set3DAttributes(FMODUnity.RuntimeUtils.To3DAttributes()

Though you sure you need spatialized music?

Make sure you don’t have a spatializer on the FMOD event track :

This causes the audio track to be spatialized

To the people who’ll call me a necrobumper, I like googling things and finding the results, not empty threads.

1 Like