logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class UnityAudioPlayerClipDefinitionShippedContentTests

    A clip definition whose stored Audio Clip Path drifted from its clip shows an "Update Audio Clip Path" button. On a definition the package ships the button must refuse — the next package update overwrites that file, which is why the import postprocessor already skips it — and the inspector must say why, while on the author's own copy the button still stores the current path.

    The button runs Serenity.AudioPlayer.Infrastructure.Settings.Editor.UnityAudioPlayerClipPathSync.SyncIfStale(Serenity.AudioPlayer.Infrastructure.Settings.UnityAudioPlayerClipDefinition) and nothing else, so the click is driven through that method: an IMGUI click cannot be synthesized headlessly without the button's rect, which only the inspector's own layout knows. The notice is proven through a real inspector draw. The drift is made in memory only, so the shipped file never holds it.

    Inheritance
    object
    UnityAudioPlayerClipDefinitionShippedContentTests
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Serenity.Tests.Editor
    Assembly: Tests.Editor.dll
    Syntax
    public class UnityAudioPlayerClipDefinitionShippedContentTests

    Constructors

    UnityAudioPlayerClipDefinitionShippedContentTests()

    Declaration
    public UnityAudioPlayerClipDefinitionShippedContentTests()

    Methods

    DrawingAShippedDefinition_DoesNotWriteTheSpatialFieldsIntoItsFile()

    Declaration
    public void DrawingAShippedDefinition_DoesNotWriteTheSpatialFieldsIntoItsFile()

    DrawingAStaleProjectOwnedCopy_ShowsNoShippedContentRefusal()

    Declaration
    public void DrawingAStaleProjectOwnedCopy_ShowsNoShippedContentRefusal()

    DrawingAStaleShippedDefinition_ShowsTheShippedContentRefusal()

    Declaration
    public void DrawingAStaleShippedDefinition_ShowsTheShippedContentRefusal()

    SetUp()

    Declaration
    public void SetUp()

    TearDown()

    Declaration
    public void TearDown()

    UpdateAudioClipPath_OnAProjectOwnedCopy_StoresThePathTheClipIsLoadedFrom()

    Declaration
    public void UpdateAudioClipPath_OnAProjectOwnedCopy_StoresThePathTheClipIsLoadedFrom()

    UpdateAudioClipPath_OnAShippedDefinition_IsRefusedAndLeavesTheFileUntouched()

    Declaration
    public void UpdateAudioClipPath_OnAShippedDefinition_IsRefusedAndLeavesTheFileUntouched()
    In this article
    © 2026 Serenity. All Rights Reserved