Hi, I am currently working on a 3D game that has splitscreen.
I reached a point where putting audio is kind of weird.
Both players will be moving far away from each other and they will both listen to different things.
I know that unity only allows for 1 listener and I had a few ideas on how to make both my characters “listen” to the audio.
1-Make a moving gameobject with the listener and check for priority levels, if it has the lowest values, move to that player.
2-Have 2 listeners, 1 on, 1 off. turn on depending on priority levels.
3-Have a listener in between the 2 players.
4-Have a gameobject with the listener bounce between players per frame.
Each on of these “solutions” came with their issues.
1 and 2 would either jump in between each other or the sound would stop entirely for 1 or the other.
3 only allows if the players are close to each other, otherwise it doesn’t really work.
4, some frames would have no sound/audio breaks for 1 frame and when listening to many things it kind of sounds weird.
Now, I am not sure what to do or what other methods I could try and implement. I really do not want to use the asset store for this solution(I know there are a few for this issue).