# Scene Transition Flow

**URL:** <https://community.coherence.io/t/scene-transition-flow/773>\
**Category:** Help\
**Created:** [October 8, 2025, 5:25pm UTC](https://community.coherence.io/t/scene-transition-flow/773 "2025-10-08T17:25:47Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![erethan](https://avatars.discourse-cdn.com/v4/letter/e/9f8e36/32.png) [@erethan](https://community.coherence.io/u/erethan)\
**Post date:** [October 8, 2025, 5:25pm UTC](https://community.coherence.io/t/scene-transition-flow/773/1 "2025-10-08T17:25:48Z")

</div>

I implemented a scene transition in my game, and it seems to be working but I suspect that I’ve messed up something.

Here is my scene flow:

1. Application starts and before loading the first scene, Reflex ([https://github.com/gustavopsantos/Reflex](https://github.com/gustavopsantos/Reflex)) does the following:

2. Unity loads the first scene (MainMenu), which has a CoherenceBridge of its own, but I guess it just “writes its values” into the main bridge

3. In that scene, I am using the Room UI sample to create and join a room. I add a listener to CoherenceBridge.onConnect, and when it is invoked, I call SceneManager.LoadScene

4. In the next loaded scenes

I’m using shared authority and running a local server. All scenes have a CoherenceBridge and a CoherenceLiveQuery (and I’ve also read [Scene management](https://docs.coherence.io/manual/scenes) 😁 )

Thanks!

---

<div class="post-metadata">

**Author:** ![cary](https://dub1.discourse-cdn.com/flex017/user_avatar/community.coherence.io/cary/32/37_2.png) [@cary](https://community.coherence.io/u/cary)\
**Post date:** [October 8, 2025, 5:44pm UTC](https://community.coherence.io/t/scene-transition-flow/773/2 "2025-10-08T17:44:04Z")

</div>

> [@erethan](#):
>
> can not create duplicate entities in different scene

Hey so some questions to help me understand what’s up:  
Do you expect to use scenes as a way of segregating networked entities? Like, two clients connect to the same replication server but are in different scenes so they can’t see each other’s entities?

Generally, I expect to see that error if client 1 creates the unique entity A in scene 1 and client 2 creates the same unique entity A in scene 2. It’s possible that there is a race with the connection and changing scenes and instantiating that is causing this that you’ll need to account for.

I suggest:

- don’t use the scene indexing (SetClientScene) unless you actually want to have players on the same replication server in different scenes (this is kind of a complex setup with limited value compared to just having each scene have a separate bridge like if I’m in dungeon A and you’re in dungeon B we’re in different rooms on the replication server)
- if you do want to use the scene index stuff, then make sure that all clients are in the same scene index when you instantiate the unique entities. (it looks like one client is in scene 1 and the other in scene 2 instantiating the same entity which is a no no unless you’re using the separate bridges concept)

Otherwise your setup sounds reasonable and you’re right about #2, when you have a main bridge and then load a scene with it’s own bridge it informs the main bridge that this is the scene you want to instantiate things into which is nice if you use multi scene setup for things like separating UI or other things and don’t want a mono-scene.

---

<div class="post-metadata">

**Author:** ![erethan](https://avatars.discourse-cdn.com/v4/letter/e/9f8e36/32.png) [@erethan](https://community.coherence.io/u/erethan)\
**Post date:** [October 9, 2025, 7:36am UTC](https://community.coherence.io/t/scene-transition-flow/773/3 "2025-10-09T07:36:12Z")

</div>

> Do you expect to use scenes as a way of segregating networked entities? Like, two clients connect to the same replication server but are in different scenes so they can’t see each other’s entities?

I would like the clients to always move together between scenes.

I have removed the scene indexing (SetClientScene and InstantiationScene), but the error log still persists.

Not sure how I would make sure the unique entities are instantiated when all clients are in the same scene as the the unique entity is serialized in the scene. One of the clients will load first.

---

<div class="post-metadata">

**Author:** ![cary](https://dub1.discourse-cdn.com/flex017/user_avatar/community.coherence.io/cary/32/37_2.png) [@cary](https://community.coherence.io/u/cary)\
**Post date:** [October 9, 2025, 8:16pm UTC](https://community.coherence.io/t/scene-transition-flow/773/4 "2025-10-09T20:16:26Z")

</div>

If you’re still getting the duplicate instances in different scenes error from the RS then you must still have a bridge that is setting the build index. Make sure these are not set:

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

---

<div class="post-metadata">

**Author:** ![erethan](https://avatars.discourse-cdn.com/v4/letter/e/9f8e36/32.png) [@erethan](https://community.coherence.io/u/erethan)\
**Post date:** [October 10, 2025, 8:51am UTC](https://community.coherence.io/t/scene-transition-flow/773/5 "2025-10-10T08:51:52Z")

</div>

I see.. I unchecked “Use Build Index As Scene Id” and left Scene identifier as 0 in all the CoherenceBridges. Now the error log from the runner disappeared, but I started to get a few different errors.

1- Now sometimes when changing scenes, I get the following error

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

When this occurs, I stop seeing other clients in the “Client Connections” list on the client that this has happened. I can however, still see all the entities from all clients as expected.

Also, when leaving the scene, I observed that Coherence is Instantiating the objects from the leaving scene again, even if they do not have a CoherenceSync component.

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

2- After moving from a scene GameSetup to a scene Sandbox, I am observing that objects instantiated at runtime from a previous scene GameSetup are also getting their initialization called unity events called AND getting disabled? (I think perhaps also getting destroyed?)

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

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

(Nevermind the missing behaviour warnings. They are still leftovers from Netcode for GameObjects that I’m cleaning up xD)

---

<div class="post-metadata">

**Author:** ![cary](https://dub1.discourse-cdn.com/flex017/user_avatar/community.coherence.io/cary/32/37_2.png) [@cary](https://community.coherence.io/u/cary)\
**Post date:** [October 10, 2025, 2:56pm UTC](https://community.coherence.io/t/scene-transition-flow/773/6 "2025-10-10T14:56:38Z")

</div>

I feel like the DI is doing something that coherence doesn’t like. Is it possible that reflex is somehow instantiating multiple bridges so more than one connection entity is being created or something? This callstack in particular is concerning.

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

the entity is created by the network and then DI does… something … to it and then you get the errors in the post network entity creation actions. What does install bindings do to an instantiated network entity? Is it somehow assigning it to the wrong bridge by doing things with bridge resolve? If so, that’s a problem. The bridge is already resolved since it’s the one that is creating this thing in the first place.

---

<div class="post-metadata">

**Author:** ![erethan](https://avatars.discourse-cdn.com/v4/letter/e/9f8e36/32.png) [@erethan](https://community.coherence.io/u/erethan)\
**Post date:** [October 13, 2025, 11:55am UTC](https://community.coherence.io/t/scene-transition-flow/773/7 "2025-10-13T11:55:34Z")

</div>

> [@cary](#):
>
> What does install bindings do to an instantiated network entity?

Well, that is the confusing part. Install bindings don’t do anything directly on instantiated network entities. The GameObject instantiated by coherence on the logs image does not have a CoherenceSync and it is not part of any synced prefab.

Install bindings in Reflex just means registering references in the scene DI container.

So…I’ve separated the issues so we can address them one by one. Focusing on the error from the [first image I shared](https://europe1.discourse-cdn.com/flex017/uploads/coherence/original/1X/6a6a1cb3a51f75a104cd0edcf6ed90a66550cd5e.jpeg):

I removed every GameObject from the GameSetup except one with a CoherenceBridge and another with the CoherenceLiveQuery. Still, I get the same error when loading the scene. I only get the error on the second client that joins the room.

Error log from the second client that joined the room and its Main bridge in the inspector:

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

Main bridge of the client that created and joined the room first (after the second client joined):

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

The order order of events is:

1- First client creates and joins room.

2- First clients loads the “GameSetup“ scene

3- Second client joins room

4- Second client loads the “GameSetup“ scene

Just some extra info:

This is the Coherence Main Bridge prefab I’m using

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

And this one is the CoherenceBridge added to the GameSetup scene:

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

What does the “ToolkitClientConnectionManagerFailedToAddConnection” error means?

---

<div class="post-metadata">

**Author:** ![erethan](https://avatars.discourse-cdn.com/v4/letter/e/9f8e36/32.png) [@erethan](https://community.coherence.io/u/erethan)\
**Post date:** [October 13, 2025, 1:03pm UTC](https://community.coherence.io/t/scene-transition-flow/773/8 "2025-10-13T13:03:24Z")

</div>

Adding two **different** game executions with log mode set to Debug:

- The issue happening on the perspective of the first client to create and join the room:

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

- The issue happening on the perspective of the client that joined the room:

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

---

<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:** [January 11, 2026, 1:03pm UTC](https://community.coherence.io/t/scene-transition-flow/773/9 "2026-01-11T13:03:31Z")

</div>

Closed on January 11, 2026, 1:03pm UTC

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