Audio Preview is a lightweight Unity Editor utility that automatically plays an audio file preview the moment you select it in the Project window. Click another asset (or the same one again) and the preview stops on its own.
No setup, no menus, no settings — import the package and it works.
How it works
The package contains a single editor script that subscribes to Unity's selectionChanged event when the Editor loads. Whenever your selection changes:
- Any currently playing preview is stopped.
- If the new selection is an
AudioClipwith a supported extension, it is played once via Unity's internalAudioUtilAPI.
Playback is non-looping and starts at sample 0.
Supported formats
.wav, .mp3, .aiff, .aif, .ogg, .flac
Requirements
Unity 2021.3 or newer.
Installation
Import the package into your project. The script lives at:
Assets/Plugins/OneFoxStudio/AudioPreview/Scripts/AudioPreview.cs
It is editor-only (wrapped in #if UNITY_EDITOR) and ships nothing into your builds.
Disabling or removing
To turn the feature off, delete the AudioPreview folder. There is no runtime component, no scene object, and no persistent setting to clean up.