# (In Unity) How to have a parameter value become disabled after exiting it's trigger zone?

**URL:** https://qa.fmod.com/t/in-unity-how-to-have-a-parameter-value-become-disabled-after-exiting-its-trigger-zone/15008
**Category:** Unity
**Created:** [September 2, 2019, 7:07pm UTC](https://qa.fmod.com/t/in-unity-how-to-have-a-parameter-value-become-disabled-after-exiting-its-trigger-zone/15008 "2019-09-02T19:07:35Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![copu95](https://avatars.discourse-cdn.com/v4/letter/c/d78d45/32.png) [@copu95](https://qa.fmod.com/u/copu95)
#### Post date: [September 2, 2019, 7:07pm UTC](https://qa.fmod.com/t/in-unity-how-to-have-a-parameter-value-become-disabled-after-exiting-its-trigger-zone/15008/1 "2019-09-02T19:07:35Z")

</div>

Hello

In Unity, i’ve placed a cube over a section of the map with the Studio Parameter Trigger (Script) component. I’ve set some music to fade in upon entering the trigger zone, which it does.

**How can the music be disabled when exiting trigger area?**

I know i could place several other cubes around this first cube with ‘Trigger exit’ as the parameter trigger scripts trigger option but this seems tedious. Surely there is an easier way ?

---

<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 6, 2019, 1:30am UTC](https://qa.fmod.com/t/in-unity-how-to-have-a-parameter-value-become-disabled-after-exiting-its-trigger-zone/15008/2 "2019-09-06T01:30:27Z")

</div>

If it is the same trigger zone, you could just add another Studio Parameter Trigger to the object that uses Trigger Exit.
