Loading lessons...
Audio Effects & Settings
Audio Effects & Settings
To enhance your game's atmosphere, you can add environmental effects and optimize sound files for target devices.
Audio Effects
Unity provides filters you can add directly to Mixer Groups or GameObjects:
- Audio Reverb Zone: Simulates a specific acoustics space (like a cavern, small room, or concert hall). When the listener enters the zone, a reverb filter applies to all 3D sounds.
- Low Pass Filter: Cuts off high frequencies, making sounds appear muffled (e.g., sound coming from behind a door or underwater).
- High Pass Filter: Cuts off low frequencies, leaving only thin, tinny sounds (e.g. radio speaker effect).
Compression & Import Settings
Audio files (like wav, mp3, ogg) can take up a lot of build space. Configure them in the Project Window:
- Force to Mono: Merges stereo channels into a single channel. Essential for 3D sounds, as stereo audio files cannot pan accurately in 3D space.
- Load Type:
- Decompress on Load: Uncompresses files on startup. Takes up more RAM but runs with zero CPU overhead. Best for short sound effects.
- Compressed in Memory: Keeps files compressed in RAM, decompressing them on the fly. Best for medium sound effects.
- Streaming: Streams the audio file directly from the disk. Best for long music tracks to save RAM.
TL;DR
- Reverb Zones add environmental acoustics like caves or halls.
- Low Pass filters muffle high frequencies; High Pass filters cut low bass notes.
- Use 'Force to Mono' for 3D spatial sound assets.
- Choose Load Types (Decompress, Compressed, Streaming) to balance RAM and CPU.