AudioMixer
AudioMixer asset.
Read time 4 minutesLast updated 8 days ago
Definition
- Type: Class
- Namespace: UnityEngine.Audio
- Assembly: UnityEngine.AudioModule
- Inherits from: Object
[ExcludeFromObjectFactory]public class AudioMixer : Object
Remarks
This is a singleton representing a specific audio mixer asset in the project.
Properties
Property | Description |
|---|---|
| outputAudioMixerGroup | Routing target. |
| updateMode | How time should progress for this AudioMixer. Used during Snapshot transitions. |
Methods
Method | Description |
|---|---|
| ClearFloat | Resets an exposed parameter to its initial value. |
| FindMatchingGroups | Returns mixer groups whose path contains the specified substring. |
| FindSnapshot | The name must be an exact match. |
| GetFloat | Returns the value of the exposed parameter specified. If the parameter doesn't exist the function returns false. Prior to calling SetFloat and after ClearFloat has been called on this parameter the value returned will be that of the current snapshot or snapshot transition. |
| SetFloat | AudioMixer.SetFloat sets the value of the exposed parameter specified. Once you call this function, mixer snapshots will no longer control the exposed parameter, and you can only modify the parameter using AudioMixer.SetFloat. |
| TransitionToSnapshots | Transitions to a weighted mixture of the snapshots specified. This can be used for games that specify the game state as a continuum between states or for interpolating snapshots from a triangulated map location. |
Inheritance
Operators
Operator | Description |
|---|---|
| operator == | Compares two object references to see if they refer to the same object. |
| bool | Determines whether the object exists. |
| operator != | Compares if two objects refer to a different object. |