> For the complete documentation index, see [llms.txt](https://kb.heathen.group/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://kb.heathen.group/old-kb/toolkit-for-ui-and-ux/unity/components/play-on-exit.md).

# Play On Exit

## Introduction

{% hint style="info" %}
Part of the [Interaction Tools](/old-kb/toolkit-for-ui-and-ux/unity/learning/core-concepts/interaction-tools.md) of the UX Complete asset
{% endhint %}

A simple component that plays the configured sound when the pointer exits. This uses Unity's IPointerExitHandle.

## Definition

### Fields and Attributes

| Type        | Name        | Notes                                 |
| ----------- | ----------- | ------------------------------------- |
| AudioSource | output      | used to play the sound                |
| AudioClip   | sound       | the sound to be played                |
| float       | volumeScale | the scale of the volume for this play |
