Buttons SFX

Hello everyone. We haven’t seen this on any lessons so far, but does the Button Text Mesh Pro comes with a option for SoundEffects? If so, I can’t find it. If this function is not available, does anyone knows how to implement it?

Got it: on the Hierarchy click to add Audio and then Audio Source. Assign the desired sound file to the new Object and check the Play on Awake box to OFF.

After that, do the following for all buttons you want the sound played when clicked: on the On Click() event box, select to add another property. Assign the new Audio Source you created and from the dropdown menu choose AudioSource, and then Play() .

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms