# Why Nested Event creates instances without destroying previous one? Shouldn't the system take care of it?

**URL:** <https://qa.fmod.com/t/why-nested-event-creates-instances-without-destroying-previous-one-shouldnt-the-system-take-care-of-it/20575>\
**Category:** Unity\
**Created:** [August 21, 2023, 10:29pm UTC](https://qa.fmod.com/t/why-nested-event-creates-instances-without-destroying-previous-one-shouldnt-the-system-take-care-of-it/20575 "2023-08-21T22:29:26Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Wilhelm\_LikeAStar](https://avatars.discourse-cdn.com/v4/letter/w/e47774/32.png) [@Wilhelm\_LikeAStar](https://qa.fmod.com/u/Wilhelm_LikeAStar)\
**Post date:** [August 21, 2023, 10:29pm UTC](https://qa.fmod.com/t/why-nested-event-creates-instances-without-destroying-previous-one-shouldnt-the-system-take-care-of-it/20575/1 "2023-08-21T22:29:26Z")

</div>

[https://canada1.discourse-cdn.com/flex036/uploads/fmod/original/2X/5/5833b6c133b42aa85c7d299b91dc3135c90f9e99.mp4](https://canada1.discourse-cdn.com/flex036/uploads/fmod/original/2X/5/5833b6c133b42aa85c7d299b91dc3135c90f9e99.mp4)

I am using a Nested Event with Labeled Parameter. This “movement” just switches that Labeled Parameter by enum. After stopping the Parent instance, all of the other instances are getting destroyed. But why does not nested event’s itself not releasing itself since it is a reference then?

---

<div class="post-metadata">

**Author:** ![Wilhelm\_LikeAStar](https://avatars.discourse-cdn.com/v4/letter/w/e47774/32.png) [@Wilhelm\_LikeAStar](https://qa.fmod.com/u/Wilhelm_LikeAStar)\
**Post date:** [August 21, 2023, 10:55pm UTC](https://qa.fmod.com/t/why-nested-event-creates-instances-without-destroying-previous-one-shouldnt-the-system-take-care-of-it/20575/2 "2023-08-21T22:55:22Z")

</div>

As the solution, stop and release the previous one, and create new instance of the Parent Instance, set the parameter and start it. So its the same as creating new instance without nested event but you are creating a nested event’s parent this time. I dont know it would be cool if this can be handled automatically.

---

<div class="post-metadata">

**Author:** ![Leah\_FMOD](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/leah_fmod/32/3685_2.png) [@Leah\_FMOD](https://qa.fmod.com/u/Leah_FMOD)\
**Post date:** [August 24, 2023, 2:02am UTC](https://qa.fmod.com/t/why-nested-event-creates-instances-without-destroying-previous-one-shouldnt-the-system-take-care-of-it/20575/3 "2023-08-24T02:02:02Z")

</div>

Hi,

What version of FMOD Studio and FMOD for Unity are you using? Additionally, do you have any AHDSR modulations being applied in the nested events?

---

<div class="post-metadata">

**Author:** ![Wilhelm\_LikeAStar](https://avatars.discourse-cdn.com/v4/letter/w/e47774/32.png) [@Wilhelm\_LikeAStar](https://qa.fmod.com/u/Wilhelm_LikeAStar)\
**Post date:** [October 6, 2023, 7:42pm UTC](https://qa.fmod.com/t/why-nested-event-creates-instances-without-destroying-previous-one-shouldnt-the-system-take-care-of-it/20575/4 "2023-10-06T19:42:47Z")

</div>

Hi, Sorry for super late answer, yes they were using AHDSR and the version is 2.02.16 BuildVersion: #135072

---

<div class="post-metadata">

**Author:** ![Leah\_FMOD](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/leah_fmod/32/3685_2.png) [@Leah\_FMOD](https://qa.fmod.com/u/Leah_FMOD)\
**Post date:** [October 8, 2023, 10:12pm UTC](https://qa.fmod.com/t/why-nested-event-creates-instances-without-destroying-previous-one-shouldnt-the-system-take-care-of-it/20575/5 "2023-10-08T22:12:43Z")

</div>

No problem!

There was a known issue on 2.02.16 with AHDSR modulations being applied to nested/referenced events where the nested/referenced events wouldn’t stop playing. This issue has been fixed as of 2.02.17 - please update to 2.02.17 or above and let me know whether the problem you’re observing has been resolved.

---

<div class="post-metadata">

**Author:** ![Wilhelm\_LikeAStar](https://avatars.discourse-cdn.com/v4/letter/w/e47774/32.png) [@Wilhelm\_LikeAStar](https://qa.fmod.com/u/Wilhelm_LikeAStar)\
**Post date:** [October 11, 2023, 12:48pm UTC](https://qa.fmod.com/t/why-nested-event-creates-instances-without-destroying-previous-one-shouldnt-the-system-take-care-of-it/20575/6 "2023-10-11T12:48:48Z")

</div>

Thank you. The problem seems fixed in 2.02.18
