logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    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:

    • When an AudioClip is assigned or removed.
    • When the author presses the update button the inspector shows for a stale path (the clip moved or an Addressables address changed) — drawing the inspector, moving the clip or changing an address never writes the asset. The Health Check lists the same drift with its own fix, which runs the same Serenity.AudioPlayer.Infrastructure.Settings.Editor.UnityAudioPlayerClipPathSync.

    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.

    Structs

    ClipSpatialSettingsDraft

    The five values of a clip definition's spatial group held apart from any asset: a batch importer row, the importer window's defaults and a recipe clip all carry one, and ApplyTo(UnityAudioPlayerClipDefinition) is the single place that writes it onto a definition. Public because the batch importer's row type and the recipe importer, which sit in other assemblies, use it.

    In this article
    © 2026 Serenity. All Rights Reserved