Hi. I have some trouble with me menuscreen. When you click or spam hovering over menu elements, the sound gives of nasty clicks
I have 2 nested events in an event- One for clicking and one for hovering.
public class FMODMenuSoundManager : MonoBehaviour {
public string menuOptionsPath = "event:/Menu/Ui/MenuOptions";
FMOD.Studio.EventInstance menuOptions;
FMOD.Studio.ParameterInstance soundSelect;
void Awake ()
{
menuOptions = FMODUnity.RuntimeManager.CreateInstance(menuOptionsPath);
menuOptions.getParameter("soundSelect", out soundSelect);
}
public void PlaySound(float parameter)
{
soundSelect.setValue(parameter);
menuOptions.start();
}
}
The last 3 lines are where the action is. The parameter is set and the sound is played. Again, if I spam click, the sound starts clicking ingame. I’ve tried setting the files to stream, using 48kbps files
thanks in advance, if theres anything wrong with the thread, please let me know, first time posting here.