1
\$\begingroup\$

I'm trying to make an audio game where by players can tell the position of an object listening to whether the right or left speaker is playing the audio.

The idea is:

If the object is on the left hand side

Play the audio of that object through the left speaker

Right hand side = right speaker

How would I do this in Unity?

\$\endgroup\$
1
  • \$\begingroup\$ Unity basically does this out of the box... what have you tried so far? Are you finding it's not working when you just use the basic built in audio source & listener setup? \$\endgroup\$ Commented Oct 1, 2017 at 1:14

1 Answer 1

4
\$\begingroup\$

Unity has a full-fledged system for 3d audio. Take a look at the components AudioListener and AudioSource.

When the game object with the AudioSource is right from the game object with the AudioListener, it will play on the right stereo channel, and when it is left from the AudioListener, it will play on the left.

\$\endgroup\$
1

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.