# EventDescription reports 2d Panning and -1 MaxDistance if using Resonance Audio Source

**URL:** https://qa.fmod.com/t/eventdescription-reports-2d-panning-and-1-maxdistance-if-using-resonance-audio-source/15556
**Category:** Unity
**Created:** [March 19, 2020, 12:30am UTC](https://qa.fmod.com/t/eventdescription-reports-2d-panning-and-1-maxdistance-if-using-resonance-audio-source/15556 "2020-03-19T00:30:27Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Alverik](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/alverik/32/1020_2.png) [@Alverik](https://qa.fmod.com/u/Alverik)
#### Post date: [March 19, 2020, 12:30am UTC](https://qa.fmod.com/t/eventdescription-reports-2d-panning-and-1-maxdistance-if-using-resonance-audio-source/15556/1 "2020-03-19T00:30:28Z")

</div>

Well, I wrote my own occlusion handling to use Resonance Audio occlusion (I used 5 RayCastAllNonAlloc spaced in a cross pattern to check how blocked an object is.). I’m only cashing 3 or 4 hits for every raycast, but still I wanted to avoid casting rays at all if the audio is too far away to be heard. the problem is when using a Resonance Audio Source the eventDescription reports the event uses 2d Panning and -1 MaxDistance. Is this a bug or is it intended? I have the Resonance audio source and a Resonance sound field on the event (attenuation works fine and smooth too), but I still can’t get the maximum distance from code…

Is there some other way to get the max distance or how attenuated the current instance is?

---

<div class="post-metadata">

### Author: ![cameron-fmod](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/cameron-fmod/32/261_2.png) [@cameron-fmod](https://qa.fmod.com/u/cameron-fmod)
#### Post date: [March 27, 2020, 5:27am UTC](https://qa.fmod.com/t/eventdescription-reports-2d-panning-and-1-maxdistance-if-using-resonance-audio-source/15556/2 "2020-03-27T05:27:58Z")

</div>

[`Studio::EventDescription::is3D`](https://fmod.com/resources/documentation-api?version=2.0&page=studio-api-eventdescription.html#studio_eventdescription_is3d) should return true if it finds any panner on the event, but the Min/Max distances aren’t accessible from third party plugins.

I have made a task to improve the documentation on this because I feel like we could make this clearer in some places.
