uiaudio - eisclimber/ExPresS-XR GitHub Wiki
Class in ExPresSXR.UI
Inherits from UnityEngine.MonoBehaviour
Class for playing common UI Audios triggered by various UI elements.
Provides automatic setup utility via the context menu.
public class UiAudio : MonoBehaviour| Name | Description |
|---|---|
| PlayAudio(AudioClip) | Plays the provided audio clip. |
| PlayButtonClick() | Plays the click audio clip. |
| PlayButtonDown() | Plays the button down audio clip. |
| PlayButtonHoverOff() | Plays the hover off audio clip. |
| PlayButtonHoverOn() | Plays the hover on audio clip. |
| PlayButtonUp() | Plays the button up audio clip. |
| StartPlayScroll() | Plays the scroll audio clip. |
| StartPlayScrollClamped(float) | Plays the scroll audio clip if the provided value is between 0.0f and 1.0f (inclusive). |
This can be used to prevent playing the scrolling sound of scrollbars when scrolling a the ends and using elastic movement. |
|
| StartPlayScrollEventTrigger(BaseEventData) | Plays the scroll audio clip. |