class
AudioListener
Represents a listener that hears audio sources.
For spatial audio the volume and pitch of played audio is determined by the distance, orientation and velocity differences between the source and the listener.
Public
Constructors
AudioListener
Methods
Protected
Constructors
AudioListener
Methods
OnDestroyed
Called once just before the component is destroyed.
Called regardless of the state the component is in.
OnDisabled
Called every time a component is placed into the Stopped state.
This includes component destruction if component wasn't already in Stopped state during destruction. When called during destruction it is called before OnDestroyed.
OnEnabled
Called every time a component leaves the Stopped state, if the component is enabled.
This includes component creation if requirements for leaving the Stopped state are met. When called during creation it is called after OnBeginPlay.
OnTransformChanged
Called when the component's parent scene object has changed.
Not called if the component is in Stopped state. Also only called if necessary notify flags are set via SetNotifyFlagsInternal().
Update
Called once per frame.
Only called if the component is in Running state.
RestoreInternal
Creates the internal representation of the AudioListener and restores the values saved by the Component.
UpdateTransform
Updates the transform of the internal AudioListener representation from the transform of the component's scene object.