Forum rules - please read before posting.

How to change Sound Type for Click Sound in menu elements

Hi. Some of my buttons click sound contains Speech, so I'd like them to be considered Speech sounds and not SFX sounds.
I already achieved this (using unity UI) by adding an Audio Source and a Sound components to each button.
Then OnClick() event calls Sound.Play. And the Sound Type can be selected in the Sound component.
I just want to know if there is a better way to do this. Thanks.

Comments

  • edited October 2024

    That'll work, but if your game makes use of Audio Mixer Groups, you can forego the Sound component and just assign your Speech mixer to the Button's AudioSource.

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.