Documentation

Unity Engine

Unity Engine

velocityUpdateMode

This lets you set whether the Audio Listener should be updated in the fixed or dynamic update.
Read time 1 minuteLast updated 2 months ago

Definition

  • Type: Property
  • Namespace: UnityEngine
  • Assembly: UnityEngine.AudioModule
public AudioVelocityUpdateMode velocityUpdateMode { get; set; }

Remarks

Make sure this is set to update in the same update loop as the Audio Listener is moved in if you are experiencing problems with Doppler effect simulation. The default setting will automatically set the listener to be updated in the fixed update loop if it is attached to a rigidbody, and dynamic otherwise.