# Assigning parameter to distance.

**URL:** <https://qa.fmod.com/t/assigning-parameter-to-distance/11734>\
**Category:** Unity\
**Created:** [November 28, 2014, 12:55am UTC](https://qa.fmod.com/t/assigning-parameter-to-distance/11734 "2014-11-28T00:55:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![hookshot12345](https://avatars.discourse-cdn.com/v4/letter/h/91b2a8/32.png) [@hookshot12345](https://qa.fmod.com/u/hookshot12345)\
**Post date:** [November 28, 2014, 12:55am UTC](https://qa.fmod.com/t/assigning-parameter-to-distance/11734/1 "2014-11-28T00:55:33Z")

</div>

Hi all I am new to both FMOD and Unity. I have been reading up on the integration documentation and researching online for some time, however i am finding it difficult to pickup.

What I am trying to achieve is evolving audio within the game my team is working on. I have built an event inside FMOD which consists of 3 looping audio tracks, there is a parameter which changes the volume of the tracks to make the music more intense. I want the parameter to change as i move closer to an object within my game.

So far i have FMOD listener working and it is triggering my event but i cannot work out how to integrate the parameter. Any help for this would be HUGELY appreciated as I need to understand this for University. Thanks in advance!

---

<div class="post-metadata">

**Author:** ![nick1](https://avatars.discourse-cdn.com/v4/letter/n/47e85d/32.png) [@nick1](https://qa.fmod.com/u/nick1)\
**Post date:** [December 2, 2014, 12:29am UTC](https://qa.fmod.com/t/assigning-parameter-to-distance/11734/2 "2014-12-02T00:29:36Z")

</div>

This should be easy. For your parameter make sure it’s a built in distance parameter. In unity play your music using an **FMOD\_Studio Event Emitter** on an object and the position will be set automatically.
