Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


AudioListener

Representation of a listener in 3D space.
Read time 6 minutesLast updated 2 days ago

Definition

  • Type: Class
  • Namespace: UnityEngine
  • Assembly: UnityEngine.AudioModule
  • Inherits from: AudioBehaviour
[RequireComponent(typeof(Transform))]public sealed class AudioListener : AudioBehaviour

Remarks

This class implements a microphone-like device. It records the sounds around it and plays that through the player's speakers. You can only have one listener in a Scene.
Additional Resources: AudioSource, AudioListener component in the Components Reference.

Properties

Property

Description

velocityUpdateModeThis lets you set whether the Audio Listener should be updated in the fixed or dynamic update.

Static Properties

Property

Description

pauseThe paused state of the audio system.
volumeControls the game sound volume (0.0 to 1.0).

Static Methods

Method

Description

GetOutputDataProvides a block of the listener (master)'s output data.
GetSpectrumDataProvides a block of the listener (master)'s spectrum data.

Inheritance

Inherited Members

Operators

Operator

Description

operator ==Compares two object references to see if they refer to the same object.
boolDetermines whether the object exists.
operator !=Compares if two objects refer to a different object.