Play Audio

This component is used to play an AudioClip from the UI on a specific input event while allowing volume adjustment.

Make sure you have an Audio Source component in your scene, preferably attached to your UI camera.

Simple usage

Attach the component to any GameObject with a Graphic component such as Image, Text etc.

Assign your AudioClip, adjust the volume and select an input event on which the clip should play.

The available events are PointerEnter, PointerExit, PointerDown, PointerUp, Click and DoubleClick.