- Home /
Since switching to using offline & online scenes in the NetworkManager, Clients will not sync (UNET)
Everything with UNET has gone fine, until I switched to using Offline & Online scenes.
So I have a Menu scene, set as my Offline scene, which is where my NetworkManager is, checked to DontDestroyOnLoad, with the player prefab set, and Auto-Spawn checked. Then I have my Gameplay scene, set as my Online scene. Both are in the build settings.
For the host-player, hosting a game works fine, scene changes, player spawns, all is good. The client-player appears to connect fine, and the OnServerConnect(NetworkConnection conn) override is run on the server, meaning they are indeed connected. (I am calling base.OnServerConnect(conn) though, and no errors are stopping it, so this isn't the issue) But, the client-player prefab does not spawn server-side or client-side. The SyncVars from my GameManager also not synced on the client.
This only happens when there are two scenes, switching back to one scene fixes the problem but obviously that is not an ideal fix. If someone could help me out that'd be amazing, thanks.
EDIT: Still unable to solve this problem. Please, someone?
Your answer
Follow this Question
Related Questions
[Unet] NetworkServer can not assign local player authority after a scene change 0 Answers
How can i send a Player list to every Client 0 Answers
NetworkBehaviour.isClient problems 1 Answer
Very Confused on Networking HLAPI Practices 1 Answer
How to watch in client applications what it is happening in the server one? 0 Answers