Namespace Serenity.AudioPlayer.Infrastructure.Settings.Editor
Classes
SerenityEditorAudioPreview
Thin editor-only helper that auditions an UnityEngine.AudioClip in the Inspector by driving Unity's
internal UnityEditor.AudioUtil through reflection.
Lets audio designers hear a clip/track without entering Play mode. The internal API's method names differ
between Unity versions (PlayPreviewClip/StopAllPreviewClips on newer, PlayClip/
StopAllClips on older), so the methods are resolved by name with their arguments adapted to the
resolved signature, and every call fails soft if the API cannot be found.
UnityAudioPlayerClipDefinitionEditor
Unity Editor custom inspector for UnityAudioPlayerClipDefinition ScriptableObject.
Provides specialized GUI for configuring individual audio clip definitions including
Unity AudioClip asset references and addressable asset paths. Features validation
for clip assignments and path configurations with integrated editor tooling for
audio asset management workflows.
The stored AudioClipPath is kept in sync automatically:
- When an AudioClip is assigned or removed.
- On every inspector redraw (catches Addressables address changes).
- When the AudioClip asset is moved (via Serenity.AudioPlayer.Infrastructure.Settings.Editor.UnityAudioPlayerClipDefinitionPostprocessor).
UnityAudioPlayerSettingsEditor
Unity Editor custom inspector for UnityAudioPlayerSettings ScriptableObject. Provides specialized GUI for configuring audio player service settings including channel count, audio type classification, Unity mixer group assignments, and game settings integration. Extends FoundationEditor for consistent editor styling and validation patterns.