- Home /
Online Scene doesn't loading for the Client
Hello,
It's a really simple problem: I have an offline and an online scene (for menu & game). I can start the online scene by the Host, but if client want to join the online scene doesn't loading to him, just staying in the offline scene. (I don't use lobby, because I love the retro style MP games, where there wasn't any stupid lobby)
The scenes added into the NetworkManager, server starting with StartHost(), client starting with StartClient(); The connection is OK, but the scene doesn't changing for the Client...
What am I missed?
Thanks,
try changing the Network$$anonymous$$anager log level to developer and see what the client is reporting when connecting.
another approach would be creating a basic scene with Network$$anonymous$$anager and its GUI, adding on and offline scene, disable player spawning, build one to run as server and connect as client on localhost. This setup has to work. If it does, compare.
It doesnt work. I made 2 very simple scenes (1 & 2), but client stays on 1.
I use this now, but causes many bugs which wasn't before, when there was only 1 scene where happened the hosting and connecting.
public override void OnStartClient(NetworkClient client) {
Scene$$anonymous$$anager.LoadScene(onlineScene); }
and its 3 scenes in total? one with Network$$anonymous$$anager, one as offline, one as online scene?