UI.PlaySoundOnOff
static void PlaySoundOnOff(UIVisual elementVisual, IdHash elementId, Vec3 atLocal)
This will play the ‘on’ sound associated with the given UIVisual at the local position. It will also play the ‘off’ sound when the given element becomes inactive, at the world location of the initial local position!
| UIVisual elementVisual | The UIVisual to pull sound information from. |
| IdHash elementId | The id of the element that will be tracked for playing the ‘off’ sound. |
| Vec3 atLocal | The hierarchy local location where the sound will play. |
Found an issue with these docs, or have some additional questions? Create an Issue on Github!