AUDIO • AUDIOLISTENER
Unity AudioSource Not Playing Sound Fix
Diagnose why your game has no audio: missing AudioListener, 3D spatial attenuation falloff, muted mixers, or unassigned AudioClip references.
5-Point Audio Checklist
- AudioListener on Main Camera: There must be exactly one active
AudioListenercomponent in your scene (usually on your Main Camera). If deleted, all sounds are silent. - Mute Audio in Game View: Check the Mute Audio button in the top bar of the Unity Editor Game window.
- Spatial Blend 2D vs 3D: If set to
3D (1.0)and the sound origin is beyondMax Distance(default 500m), you won't hear anything. For UI/Music, set Spatial Blend to2D (0.0). - Volume = 0: Verify that
AudioSource.volumeor Master AudioMixer volume isn't at 0 or -80dB. - AudioClip Not Assigned: Check that the AudioClip slot is not None before calling
Play().
1
Reliable Sound Player C# Script
ReliableSoundPlayer.cs (C#)
using UnityEngine;
public class ReliableSoundPlayer : MonoBehaviour
{
[SerializeField] private AudioClip soundClip;
[SerializeField] private float volume = 0.85f;
public void PlaySound2D()
{
if (soundClip != null)
{
// Plays audio clip at position without needing an existing AudioSource
AudioSource.PlayClipAtPoint(soundClip, Camera.main.transform.position, volume);
}
else
{
Debug.LogWarning("[ReliableSoundPlayer] Sound Clip is unassigned!", this);
}
}
}