Scripting API

AudioMixer

class in UnityEngine.Audio · UnityEngine.AudioModule · inherits from Object

8 of 8 of Unity's membersUnity's documentation
In Tassix

A mixer: groups of audio sources (Master and the groups under it), parameters (each group's volume in dB and pitch in percent, some of them exposed to scripts by name) and snapshots of their values. Sources routed to a group play at the volume and pitch of the group and the groups above it. Effects other than volume and pitch aren't applied yet.

Properties 2

AudioMixerGroup? outputAudioMixerGroup { get; set; }

The group this mixer's output goes into (another mixer's), or null.

AudioMixerUpdateMode updateMode { get; set; }

Methods 6

bool ClearFloat(string name)

Returns an exposed parameter to the snapshots' control.

AudioMixerGroup[] FindMatchingGroups(string subPath)

Groups whose path (Master/Sfx/UI) contains subPath, ignoring case; all for "".

AudioMixerSnapshot? FindSnapshot(string name)
bool GetFloat(string name, out float value)
bool SetFloat(string name, float value)

Sets an exposed parameter, overriding the snapshots; false when no parameter has that name.

void TransitionToSnapshots(AudioMixerSnapshot[] snapshots, float[] weights, float timeToReach)

Checked against Unity

Conformance scenarios that exercise it, recorded in Unity and compared event by event.