# FMOD Event Instance across scene load

**URL:** <https://qa.fmod.com/t/fmod-event-instance-across-scene-load/19713>\
**Category:** Unity\
**Tags:** unity\
**Created:** [January 7, 2023, 1:22pm UTC](https://qa.fmod.com/t/fmod-event-instance-across-scene-load/19713 "2023-01-07T13:22:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![alexjet1000](https://avatars.discourse-cdn.com/v4/letter/a/eb8c5e/32.png) [@alexjet1000](https://qa.fmod.com/u/alexjet1000)\
**Post date:** [January 7, 2023, 1:22pm UTC](https://qa.fmod.com/t/fmod-event-instance-across-scene-load/19713/1 "2023-01-07T13:22:19Z")

</div>

Hello, i wonder whats the correct way to stop an Event Instance from previous scene that keeps playing after a scene has been loaded. How can i keep the event instance reference persistent to stop it after loading the new scene?

Thanks!

---

<div class="post-metadata">

**Author:** ![Connor\_FMOD](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/connor_fmod/32/3685_2.png) [@Connor\_FMOD](https://qa.fmod.com/u/Connor_FMOD)\
**Post date:** [January 9, 2023, 2:43am UTC](https://qa.fmod.com/t/fmod-event-instance-across-scene-load/19713/2 "2023-01-09T02:43:12Z")

</div>

Hi,

There are a couple of ways to do this, I think the easiest way is to get a reference to the `Event Instance`, then instead of stopping the `Event` when you change scene you will want to pause it so you don’t lose the instance handle using [EventInstance::setPaused()](https://fmod.com/docs/2.02/api/studio-api-eventinstance.html#studio_eventinstance_setpaused). Pausing the sound while keeping a valid handle. Then on the script which contains the `Event` reference, you want to call [DontDestroyOnLoad(this)](https://docs.unity3d.com/ScriptReference/Object.DontDestroyOnLoad.html) which will keep the `GameObject` from being destroyed. Then in the new scene, you are able to play the `Event` again with `setPaused()`.

Hope this helps!

---

<div class="post-metadata">

**Author:** ![alexjet1000](https://avatars.discourse-cdn.com/v4/letter/a/eb8c5e/32.png) [@alexjet1000](https://qa.fmod.com/u/alexjet1000)\
**Post date:** [January 30, 2023, 11:45am UTC](https://qa.fmod.com/t/fmod-event-instance-across-scene-load/19713/3 "2023-01-30T11:45:30Z")

</div>

Thank you, that sounds like the optimal!
