# Bootstrapping synced managers

**URL:** <https://community.coherence.io/t/bootstrapping-synced-managers/770>\
**Category:** Help\
**Created:** [October 7, 2025, 9:47am UTC](https://community.coherence.io/t/bootstrapping-synced-managers/770 "2025-10-07T09:47:14Z")\
**Posts on this page:** 4\
**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 7, 2025, 9:47am UTC](https://community.coherence.io/t/bootstrapping-synced-managers/770/1 "2025-10-07T09:47:14Z")

</div>

Hi everyone!

How do I create a synced “manager-like” prefab?

I would like to achieve something analogous to the sample scene 7\_PlayerSpawner’s [SpawnManager.cs](http://spawnmanager.cs) (version 1.8). However, the SpawnManager listens to onLiveQuerySynced which only seems to work when the clients are connecting. In my case, the clients have been connected already and are loading into the gameplay scene.

I’ve been struggling to find something I can “hook on” to make sure I only run its logic in one of the clients.

---

<div class="post-metadata">

**Author:** ![Mathias](https://avatars.discourse-cdn.com/v4/letter/m/bbe5ce/32.png) [@Mathias](https://community.coherence.io/u/Mathias)\
**Post date:** [October 7, 2025, 12:10pm UTC](https://community.coherence.io/t/bootstrapping-synced-managers/770/2 "2025-10-07T12:10:57Z")

</div>

Hey! There is currently no event that let’s you detect unique entity resolution post-connection, this is a feature that has been added to our backlog.

Meanwhile, try adding this to your GameManager as a workaround:

> private CoherenceSync sync;
> 
> public void OnEnable()  
> {  
> sync = GetComponent();  
> sync.OnStateRemote.AddListener(OnStateRemote);  
> }  
> public void OnDisable()  
> {  
> sync.OnStateRemote.RemoveListener(OnStateRemote);  
> }
> 
> public void OnStateRemote()  
> {  
> Debug.Log(“This is NOT the real GameManager.”);  
> sync.SendCommand(OnUniquenessResolved, MessageTarget.AuthorityOnly);  
> }
> 
> [Command(defaultRouting = MessageTarget.AuthorityOnly)]  
> public void OnUniquenessResolved()  
> {  
> Debug.Log(“This is the real GameManager.”);
> 
> ```auto
> /* Start GameManaging here */
> 
> ```
> 
> }

---

<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, 8:45am UTC](https://community.coherence.io/t/bootstrapping-synced-managers/770/3 "2025-10-08T08:45:05Z")

</div>

Thanks, @Mathias!

I have a follow up question on this: How to handle the case of only existing one player in the session? OnUniquenessResolved would never be solved.

I tried to use ConnectedClients, but I observed that this information is lost on scene transition. Clients are still connected and all entities are obserbed by all clients as expected, but the bridge only displays one ConnectedClient (the local client one). Is this expected? Maybe I messed up something in my scene transition flow.

---

<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 6, 2026, 8:45am UTC](https://community.coherence.io/t/bootstrapping-synced-managers/770/4 "2026-01-06T08:45:49Z")

</div>

Closed on January 6, 2026, 8:45am UTC

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