SFX Loom
Sound effectsBlogAPIPricingLicense
Log inStart free
SFX Loom

Sound effects for games, generated from a text prompt.

Product

ExamplesSound effectsBlogAPIPricingSound licenseCreate account

Sound effects

WeaponsMagic & spellsUI & menusFootsteps & foleyImpacts & explosionsSci-fi

Legal

Terms of servicePrivacy policyRefund policy

Contact

support@sfxloom.com

© 2026 SFX Loom

Payments are processed by Lemon Squeezy, our Merchant of Record.

Blog

How to Import and Play Sound Effects in Unity

October 30, 2026 · 7 min read

Getting a sound effect into Unity takes seconds. Getting it to sound right, load fast and not repeat robotically takes a few more settings. This guide covers both, using a WAV file exported from SFX Loom as the example.

1. Import the file

Drag the WAV (or OGG) file into your project’s Assets folder, for example Assets/Audio/SFX. Unity creates an AudioClip asset. Click it to see the import settings in the Inspector, and press play in the preview area at the bottom to listen.

Prefer WAV: Unity re-encodes every clip based on its import settings, so starting from a lossless file gives the best result. (Why? See WAV vs OGG vs MP3.)

2. Choose the import settings

The settings that matter most for sound effects:

  • Force To Mono: turn on for most sound effects, especially ones played in 3D space. It halves memory use, and Unity pans mono sounds based on position anyway.
  • Load Type:
    • Decompress On Load for short, frequently played sounds (clicks, footsteps, gunshots). Fastest to play.
    • Compressed In Memory for medium-length sounds you don’t play constantly.
    • Streaming for long ambience loops and music, so they aren’t loaded into memory all at once.
  • Compression Format: Vorbis for most clips (adjust Quality), ADPCM for very short sounds with lots of noise like footsteps, PCM when you need maximum quality for tiny clips.
  • Preload Audio Data: leave on for sounds needed immediately, so they don’t hitch the first time they play.

Click Apply after changing settings. You can select many clips at once and change them together.

3. Play a sound with AudioSource

Add an AudioSource component to a GameObject. For a one-off sound effect, uncheck Play On Awake and play it from a script:

using UnityEngine;

public class PlaySfx : MonoBehaviour
{
    [SerializeField] AudioSource source;
    [SerializeField] AudioClip clip;

    public void Play()
    {
        source.PlayOneShot(clip);
    }
}

PlayOneShot lets several sounds overlap on the same AudioSource, which is what you want for gunshots or footsteps. Use source.Play() with source.loop = true for ambience and engine hums.

4. 2D or 3D?

The AudioSource’s Spatial Blend slider controls this. Set it to 0 (2D) for UI and music, and to 1 (3D) for sounds that come from objects in the world. For 3D sounds, adjust Min Distance and Max Distance in the 3D Sound Settings so they fade out at a sensible range.

5. Avoid repetition with variations

Hearing the same footstep file fifty times in a row is what makes game audio sound cheap. Two simple fixes:

  • Several takes: generate 3–4 variations of the same sound and pick one at random each time.
  • Small pitch and volume changes: vary pitch by a few percent on each play.
[SerializeField] AudioSource source;
[SerializeField] AudioClip[] steps;

public void Step()
{
    source.pitch = Random.Range(0.95f, 1.05f);
    source.PlayOneShot(steps[Random.Range(0, steps.Length)], Random.Range(0.85f, 1f));
}

In SFX Loom, set variations to 4 before generating and each take arrives as its own file, ready for an array like this.

6. Mix with an Audio Mixer

Create an Audio Mixer (Assets → Create → Audio Mixer) with groups like SFX, UI, Ambience and Music, and route each AudioSource’s Output to a group. That gives you one place to balance levels and a natural hook for volume sliders in your settings menu.

Checklist

  • Import WAV into Assets/Audio
  • Force To Mono for 3D effects
  • Decompress On Load for short sounds, Streaming for long loops
  • PlayOneShot for overlapping effects
  • Random take + slight pitch variation for repeated sounds
  • Route everything through an Audio Mixer

Need the sounds first? Browse sound effects by category or generate your own for free.

Generate game sound effects from a prompt

5 free credits · no card required

Start free

More guides

  • How to Generate Game Sound Effects with an API (Python and JavaScript)
  • Batch-Generate Every Sound Effect in Your Game with One Script
  • Generate Sound Effects Inside the Unity Editor with AI