Multi Audio Listener

$15
Publisher Na Pad Tech
File size 2.15MB
Number of files 31
Latest version 1.1.0
Latest release date 2023-02-20 01:43:14
First release date 2023-02-20 01:43:14
Supported Unity versions 2018.4.2 or higher

The Problem


Unity does not allow to have multiple `Audio Listeners`, which makes sense in most of the games - you have only one player (per physical machine) that is able to _hear_ sounds. The problem shows up when you have local co-op game with multiple players on single machine.


The Solution


The solution in big picture is to create one `AudioListener` that's located in the middle and same number of `AudioSources` as there are `MultiAudioSource`. Each time interval real audio sources moves in a way to mimic what would hear the closest player to the game object with the `MultiAudioSource`.



DEMO http://MultiAudioListener.napad.games

Top Publisher Assets