# Is there a way to see attenuation sphere in Unreal with Distance Parameter?

**URL:** <https://qa.fmod.com/t/is-there-a-way-to-see-attenuation-sphere-in-unreal-with-distance-parameter/13451>\
**Category:** Unreal Engine\
**Created:** [September 20, 2017, 8:39am UTC](https://qa.fmod.com/t/is-there-a-way-to-see-attenuation-sphere-in-unreal-with-distance-parameter/13451 "2017-09-20T08:39:54Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Monte](https://avatars.discourse-cdn.com/v4/letter/m/b77776/32.png) [@Monte](https://qa.fmod.com/u/Monte)\
**Post date:** [September 20, 2017, 8:39am UTC](https://qa.fmod.com/t/is-there-a-way-to-see-attenuation-sphere-in-unreal-with-distance-parameter/13451/1 "2017-09-20T08:39:54Z")

</div>

As the title suggests,

I’m wanting to know if there is a way to visually create the attenuation sphere when you create a built in parameter “distance” within an FMOD event.

It would be cool to visually see these curved in Unreal (4.15)

Is it a matter of exposing the parameter or debugging. any help would be great. Thanks!

---

<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:** [September 21, 2017, 6:20am UTC](https://qa.fmod.com/t/is-there-a-way-to-see-attenuation-sphere-in-unreal-with-distance-parameter/13451/2 "2017-09-21T06:20:57Z")

</div>

At the moment the integration cannot visualize this (without editing the plugins source code), although it should not be too difficult to get it to work.

I will add a task to implement this in a future release.

If you are interested in editing the integration yourself, I would take a look at the DrawVisualization function in FMODAudioComponentVisualizer.cpp.  
Check to see if there is a distance parameter and draw that one instead.

---

<div class="post-metadata">

**Author:** ![AB\_INTC](https://avatars.discourse-cdn.com/v4/letter/a/b9bd4f/32.png) [@AB\_INTC](https://qa.fmod.com/u/AB_INTC)\
**Post date:** [June 4, 2019, 4:26am UTC](https://qa.fmod.com/t/is-there-a-way-to-see-attenuation-sphere-in-unreal-with-distance-parameter/13451/3 "2019-06-04T04:26:59Z")

</div>

I’m assuming this was never done?

I’m attempting to “Get Property - Max Distance” from an audio component, but it only returns 0.0.

Visualizing a sounds attenuation radius is a basic feature I’d expect out of the box. Is there really no way to do this with FMOD and UE4?

---

<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:** [June 5, 2019, 12:27am UTC](https://qa.fmod.com/t/is-there-a-way-to-see-attenuation-sphere-in-unreal-with-distance-parameter/13451/4 "2019-06-05T00:27:39Z")

</div>

The min and max distance properties refer to the value of all Spatializers and 3D Object Spatializers on the event’s master track. Returns zero if there are no Spatializers or 3D Object Spatializers.  
[https://fmod.com/resources/documentation-api?version=2.0&page=studio-api-eventdescription.html#studio\_eventdescription\_getmaximumdistance](https://fmod.com/resources/documentation-api?version=2.0&page=studio-api-eventdescription.html#studio_eventdescription_getmaximumdistance)

The min and max distances are currently used for visualizing the sounds attenuation. I have bumped up the priority of the task to add the distance parameter to this.

---

<div class="post-metadata">

**Author:** ![AB\_INTC](https://avatars.discourse-cdn.com/v4/letter/a/b9bd4f/32.png) [@AB\_INTC](https://qa.fmod.com/u/AB_INTC)\
**Post date:** [June 5, 2019, 7:23am UTC](https://qa.fmod.com/t/is-there-a-way-to-see-attenuation-sphere-in-unreal-with-distance-parameter/13451/5 "2019-06-05T07:23:16Z")

</div>

I’m not understanding what you mean by the value of all Spatializers.  
My event has Spatializer on the master track and yet anytime the Get Property Max Distance is used, it always returns 0.0  
Perhaps it’s not working as intended?

---

<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:** [June 5, 2019, 11:32pm UTC](https://qa.fmod.com/t/is-there-a-way-to-see-attenuation-sphere-in-unreal-with-distance-parameter/13451/6 "2019-06-05T23:32:27Z")

</div>

That sounds like it could be a bug, as it should be working and has in my tests.

It would be best to start a new post outlining the issue, any repro steps and the FMOD and UE4 versions.
