# 2D audio panning in a 2D Unity scroller

**URL:** <https://qa.fmod.com/t/2d-audio-panning-in-a-2d-unity-scroller/21601>\
**Category:** Unity\
**Created:** [May 9, 2024, 8:51pm UTC](https://qa.fmod.com/t/2d-audio-panning-in-a-2d-unity-scroller/21601 "2024-05-09T20:51:45Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mhflikke](https://avatars.discourse-cdn.com/v4/letter/m/8491ac/32.png) [@mhflikke](https://qa.fmod.com/u/mhflikke)\
**Post date:** [May 9, 2024, 8:51pm UTC](https://qa.fmod.com/t/2d-audio-panning-in-a-2d-unity-scroller/21601/1 "2024-05-09T20:51:46Z")

</div>

I have a 2D scroller game and have added an FMOD Studio Event Emitter to the finish line, which I want the player to hear when they get close enough to it. However, it is audible throughout the entire map. How do I make it so that it will start fading in from a certain point and be fully audible once you hit the end?

---

<div class="post-metadata">

**Author:** ![Connor\_FMOD](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/connor_fmod/32/3685_2.png) [@Connor\_FMOD](https://qa.fmod.com/u/Connor_FMOD)\
**Post date:** [May 10, 2024, 7:05am UTC](https://qa.fmod.com/t/2d-audio-panning-in-a-2d-unity-scroller/21601/2 "2024-05-10T07:05:23Z")

</div>

Hi,

Have you added a [Spatializer effect](https://fmod.com/docs/2.02/studio/glossary.html#spatializer-effect) to the sound? This will attenuate the signal based on the event emitter’s position relative to the listener.

Hope this helps!

---

<div class="post-metadata">

**Author:** ![mhflikke](https://avatars.discourse-cdn.com/v4/letter/m/8491ac/32.png) [@mhflikke](https://qa.fmod.com/u/mhflikke)\
**Post date:** [May 10, 2024, 2:56pm UTC](https://qa.fmod.com/t/2d-audio-panning-in-a-2d-unity-scroller/21601/3 "2024-05-10T14:56:07Z")

</div>

Hi Connor, I have a Spatializer on the master track in FMOD Studio. I also have a FMOD Listener on the main camera in Unity.

---

<div class="post-metadata">

**Author:** ![Connor\_FMOD](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/connor_fmod/32/3685_2.png) [@Connor\_FMOD](https://qa.fmod.com/u/Connor_FMOD)\
**Post date:** [May 13, 2024, 2:16am UTC](https://qa.fmod.com/t/2d-audio-panning-in-a-2d-unity-scroller/21601/4 "2024-05-13T02:16:32Z")

</div>

Thanks for the info,

What version of the FMOD integration are you using?

Could I get a screenshot of the [Emitter](https://fmod.com/docs/2.02/unity/game-components.html#studio-event-emitter) in your Unity project? It could be having the [Min & Max](https://fmod.com/docs/2.02/studio/glossary.html#spatializer-effect:~:text=The%20min%20%26%20max,distance%20override%20drawer) values set on the spatializer effect. You should be able to see a white sphere around the emitter in the Unity scene, could you check that it isn’t larger than you expected?

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/fmod/original/2X/f/f0bedb4a8b466eb6c6a4ef239fa68b91d5e993f7.png)  
The outer circle is the `max` value and the inner the `min`.

Hope this helps!
