Have UI toggle and sliders trigger sounds?
See video, I see no option to make these UI elements trigger sounds upon selected. That would be nice so they're not silent, is there any efficient way of doing that? https://www.youtube.com/watch?v=FFkPG1ylzkA
Currently, how do you trigger the sounds on your buttons?
I guess you can trigger a sound on the toggle and slider by adding the Play
function of an AudioSource in the onValueChanged
of the UI components in the inspector
Oh yes that works for when you toggle the bool on/off or change the slider but initially when you move down and "select" the UI element no sound is played. $$anonymous$$aybe there is some script I can attach to it that is run once when I select the component. I just don't know how to call that. It's strange that they have sound options for buttons but not for other UI elements.
Currently,how do you trigger the sound when the buttons get focused?