I need help with FMOD adaptive music not playing.
Hi there,
I followed the Unity and FMOD series on YouTube called Survival Shooter
I came to the 3rd video which shows off adaptive music in FMOD. I followed all the steps however whenever I play the game it will not play my audio. The only time it will play the audio is whenever I am on my Menu screen. I don't want it to play on my menu screen however and only want it to play on the second scene which is the actual game itself.
[FMODUnity.EventRef]
public string music = "event:/Music/Music";
FMOD.Studio.EventInstance musicEv;
void Start()
{
musicEv = FMODUnity.RuntimeManager.CreateInstance(music);
musicEv.start();
}
public void GameStartedMusic()
{
musicEv.setParameterValue("GameStarted", 1f);
}
public void BattleMusic()
{
musicEv.setParameterValue("IsAttacking", 1f);
}
public void DeathMusic()
{
musicEv.setParameterValue("IsDead", 1f);
}
}
Comment
Your answer
Follow this Question
Related Questions
Does anyone one know how to make an aoudio menu change the volume? 1 Answer
Help with main menu 0 Answers
Help with script for Main Menu? 1 Answer
How to implement voice overs linked with buttons? 0 Answers
Having problem in turning on/off the sound when going to another scene and going back to menu 0 Answers