logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class UnityAudioMixerGroupUtils

    Utility class for AudioMixerGroup operations

    Inheritance
    object
    UnityAudioMixerGroupUtils
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Serenity.Global.Infrastructure.Utils
    Assembly: Serenity.UnityGlobal.Infrastructure.dll
    Syntax
    public static class UnityAudioMixerGroupUtils

    Methods

    DiagnoseAudioMixerGroupState(object)

    Checks the state of an AudioMixerGroup reference and returns diagnostic information.

    Declaration
    public static (bool isValid, string stateDescription, string groupName, string mixerName) DiagnoseAudioMixerGroupState(object maybeGroup)
    Parameters
    Type Name Description
    object maybeGroup
    Returns
    Type Description
    (bool isValid, string stateDescription, string groupName, string mixerName)

    DiagnoseAudioSourceMixerGroup(AudioSource)

    Diagnoses an AudioSource's outputAudioMixerGroup and returns detailed state information.

    Declaration
    public static (bool hasValidGroup, string stateDescription, string groupName, string mixerName) DiagnoseAudioSourceMixerGroup(AudioSource audioSource)
    Parameters
    Type Name Description
    AudioSource audioSource
    Returns
    Type Description
    (bool isValid, string stateDescription, string groupName, string mixerName)

    FindAudioMixerGroup(AudioMixer, string)

    Finds the AudioMixerGroup with the specified name in the AudioMixer.

    Declaration
    public static AudioMixerGroup FindAudioMixerGroup(AudioMixer audioMixer, string groupName)
    Parameters
    Type Name Description
    AudioMixer audioMixer

    The AudioMixer to search in

    string groupName

    The name of the AudioMixerGroup to find

    Returns
    Type Description
    AudioMixerGroup

    The found AudioMixerGroup, or null if not found

    TryGetAudioMixerGroup(object)

    Safely attempts to get an AudioMixerGroup from an object reference. Handles Unity's "fake null" case where a managed reference exists but the Unity object is destroyed.

    Declaration
    public static AudioMixerGroup TryGetAudioMixerGroup(object maybeGroup)
    Parameters
    Type Name Description
    object maybeGroup
    Returns
    Type Description
    AudioMixerGroup
    In this article
    © 2026 Serenity. All Rights Reserved