FMOD event won't play

Hi! I’ve set up my landing sound to play at a specifik frame from the landing animation on my character. I’m not getting any errors, what am I doing wrong?

void PlayLandingEvent(string path)
{

    FMOD.Studio.EventInstance Land = FMODUnity.RuntimeManager.CreateInstance("event:/Ellen/Landing");
    Land.start();
    Land.release();

}

It the method actually firing? Check that with a Debug.Log() line. If yes, maybe the event is 3D and you haven’t set the 3D attributes for that event. You can do that with:

Land.set3DAttributes(FMODUnity.RuntimeUtils.To3DAttributes(gameObject));

after creating the instance.

Try to remove the string path parameter from the method, you aren’t actually using that in CreateInstance.

1 Like