UI.SetElementSound
static void SetElementSound(UIVisual visual, Sound activate, Sound deactivate)
This sets the sound that a particulat UI element will make when you interact with it. One sound when the interaction starts, and one when it ends.
UIVisual visual | The UI element to apply the sounds to. |
Sound activate | The sound made when the interaction begins. A null sound will fall back to the default sound. |
Sound deactivate | The sound made when the interaction ends. A null sound will fall back to the default sound. |
Found an issue with these docs, or have some additional questions? Create an Issue on Github!