# Simulator disabling when changing scene

**URL:** https://community.coherence.io/t/simulator-disabling-when-changing-scene/649
**Category:** Help
**Created:** [February 28, 2025, 1:23pm UTC](https://community.coherence.io/t/simulator-disabling-when-changing-scene/649 "2025-02-28T13:23:47Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![tinytauren](https://dub1.discourse-cdn.com/flex017/user_avatar/community.coherence.io/tinytauren/32/488_2.png) [@tinytauren](https://community.coherence.io/u/tinytauren)
#### Post date: [February 28, 2025, 1:23pm UTC](https://community.coherence.io/t/simulator-disabling-when-changing-scene/649/1 "2025-02-28T13:23:47Z")

</div>

Hey  
I use CoherenceSceneManager.LoadScene to change scene in my game for every clients, and i would like a simulator object ( so networked for the simulator authority) to stay in simulator authority

issue : the networked object (in DontDestroyOnLoad) Disable itself and is apparently transfered to a client authority  
 ![image](https://europe1.discourse-cdn.com/flex017/uploads/coherence/original/1X/7ce2d2f0a7a47047762d5aff02a76c45736295a3.png)

 ![image](https://europe1.discourse-cdn.com/flex017/uploads/coherence/original/1X/ec7ce0578f5b73379b50f90ec4db04320e4fee75.png)

more explanation :  
the simulator is in the first scene and not the second  
loading back to the first scene does’nt cause the issue  
loading into second scene, disconnecting and reconnecting re-enable the simulator  
the simulator is supposed to be like a gamemanager, an unique server sided entity that send and receive commands from players

---

<div class="post-metadata">

### Author: ![brit](https://dub1.discourse-cdn.com/flex017/user_avatar/community.coherence.io/brit/32/34_2.png) [@brit](https://community.coherence.io/u/brit)
#### Post date: [February 28, 2025, 1:59pm UTC](https://community.coherence.io/t/simulator-disabling-when-changing-scene/649/2 "2025-02-28T13:59:31Z")

</div>

It sounds like your simulator is not transitioning to new scenes.

In your game, will different players be in different scenes at once? Or will all players always be in the same scene?

Check out the docs here for automating scene transitions (which requires Client Connections)

> **[Scene management | coherence Documentation](https://docs.coherence.io/manual/scenes#keeping-a-connection-alive-between-scene-changes)**

---

<div class="post-metadata">

### Author: ![tinytauren](https://dub1.discourse-cdn.com/flex017/user_avatar/community.coherence.io/tinytauren/32/488_2.png) [@tinytauren](https://community.coherence.io/u/tinytauren)
#### Post date: [February 28, 2025, 2:08pm UTC](https://community.coherence.io/t/simulator-disabling-when-changing-scene/649/3 "2025-02-28T14:08:50Z")

</div>

![image](https://europe1.discourse-cdn.com/flex017/uploads/coherence/original/1X/5c1f5c8aa489beb592282a0fbd18670c1ad44f32.png)  
i think i’m not really using it  
its supposed to always be in the same scene

---

<div class="post-metadata">

### Author: ![tinytauren](https://dub1.discourse-cdn.com/flex017/user_avatar/community.coherence.io/tinytauren/32/488_2.png) [@tinytauren](https://community.coherence.io/u/tinytauren)
#### Post date: [February 28, 2025, 2:23pm UTC](https://community.coherence.io/t/simulator-disabling-when-changing-scene/649/4 "2025-02-28T14:23:59Z")

</div>

![image](https://europe1.discourse-cdn.com/flex017/uploads/coherence/original/1X/7cef396cd6bb364c25081041fbf160f6dc3dfa33.png)  
in the loaded scene, these are dontdestroyOnLoad objects. As you see the simulator’s [main simulator](on the bottom, the network one ) is in the scene but disabled by coherence. reconnecting to the server enable it and gave it back to the simulator connection , why ?

---

<div class="post-metadata">

### Author: ![brit](https://dub1.discourse-cdn.com/flex017/user_avatar/community.coherence.io/brit/32/34_2.png) [@brit](https://community.coherence.io/u/brit)
#### Post date: [February 28, 2025, 2:39pm UTC](https://community.coherence.io/t/simulator-disabling-when-changing-scene/649/5 "2025-02-28T14:39:56Z")

</div>

I believe the issue is that if the player client is in a scene and the simulator is still in another scene, they will not be able to see or interact with each other. Their live queries are in different scenes.

I believe you want your simulator to change scenes with your players so it can continue to manage entities in the scene that your players are in.

---

<div class="post-metadata">

### Author: ![tinytauren](https://dub1.discourse-cdn.com/flex017/user_avatar/community.coherence.io/tinytauren/32/488_2.png) [@tinytauren](https://community.coherence.io/u/tinytauren)
#### Post date: [February 28, 2025, 2:42pm UTC](https://community.coherence.io/t/simulator-disabling-when-changing-scene/649/6 "2025-02-28T14:42:15Z")

</div>

alright,  
does the coherence.loadscene function must trigger from the simulator itself ?

 ![image](https://europe1.discourse-cdn.com/flex017/uploads/coherence/original/1X/d969926f84691f7cffc5922fc30d0f091cba38a4.png)

i’m trying every function but nothing get to move it from one scene to another

---

<div class="post-metadata">

### Author: ![brit](https://dub1.discourse-cdn.com/flex017/user_avatar/community.coherence.io/brit/32/34_2.png) [@brit](https://community.coherence.io/u/brit)
#### Post date: [February 28, 2025, 4:13pm UTC](https://community.coherence.io/t/simulator-disabling-when-changing-scene/649/7 "2025-02-28T16:13:44Z")

</div>

Do you have a ClientConnection set up (there is a different one for Sims) to manage this auto scene switch? (see the docs linked above)

---

<div class="post-metadata">

### Author: ![tinytauren](https://dub1.discourse-cdn.com/flex017/user_avatar/community.coherence.io/tinytauren/32/488_2.png) [@tinytauren](https://community.coherence.io/u/tinytauren)
#### Post date: [February 28, 2025, 4:48pm UTC](https://community.coherence.io/t/simulator-disabling-when-changing-scene/649/8 "2025-02-28T16:48:19Z")

</div>

hi i found something,

simulators doesnt switch scene with the coherenceSceneManager.loadScene function

 ![image](https://europe1.discourse-cdn.com/flex017/uploads/coherence/original/1X/f8a6eaac318c5f43d8a2f26b2e24e06a6e40652d.png)  
 ![image](https://europe1.discourse-cdn.com/flex017/uploads/coherence/original/1X/d43131a1a2334a38a3b981271181948a83e5d0e0.png)  
 ![image](https://europe1.discourse-cdn.com/flex017/uploads/coherence/original/1X/2fcef2d258424cb7c9566e6fd7efeeb579096b23.png)

as you can see, the index 1 exist for the scene so this bug is not supposed to happen  
more info : the simulator does move when played with the local simulator build, this bug appears only when i use the play mode scenario

---

<div class="post-metadata">

### Author: ![tinytauren](https://dub1.discourse-cdn.com/flex017/user_avatar/community.coherence.io/tinytauren/32/488_2.png) [@tinytauren](https://community.coherence.io/u/tinytauren)
#### Post date: [February 28, 2025, 6:08pm UTC](https://community.coherence.io/t/simulator-disabling-when-changing-scene/649/9 "2025-02-28T18:08:52Z")

</div>

OKay i found the issue :

 ![image](https://europe1.discourse-cdn.com/flex017/uploads/coherence/original/1X/05145f9dd60cca3b081d59bd41f8dbb045b2673f.png)

you need to override the global scene list in the build profile

---

<div class="post-metadata">

### Author: ![system](https://europe1.discourse-cdn.com/flex017/uploads/coherence/original/1X/b3aa79eb9519fac7aad7eba18f15a1e8ce60f6e2.png) [@system](https://community.coherence.io/u/system)
#### Post date: [May 29, 2025, 6:09pm UTC](https://community.coherence.io/t/simulator-disabling-when-changing-scene/649/10 "2025-05-29T18:09:54Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
