Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


supportsAudio

Is there an Audio device available for playback? (Read Only)
Read time 1 minuteLast updated 5 days ago

Definition

  • Type: Property
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
public static bool supportsAudio { get; }

Remarks

If Unity Audio is disabled, this function will return false.
WebGL: This function is not supported and will always return true.