Question by
kekschen · Jan 25, 2020 at 10:09 PM ·
networkingscene-loadingscene-switchingmirrorswitch scenes
I want to switch scenes in a lan-coop-game...
Hello everyone, i dont know if there is already a Solution out there in the WWW, but i didn't found one for more than 10h now.
I'm using the Mirror-Networkig API and try to switch the Scene for all clients (and the host) at the same time. I tried it already with
private void OnControllerColliderHit(ControllerColliderHit hit)
{ if (isClientOnly){ NetworkClient.Disconnect(); }
NetworkManager.singleton.ServerChangeScene(scene[i]); }
private void OnLevelWasLoaded(int level) {if (isClientOnly) { NetworkClient.Ready(); }}
but the client is always loaded into a scene without any Objects that have a NetworkIdentity, can see the Prefab of the Host-Player but not when it is moving. The host on the other side can see the client.
I've read some explanations already in other forums but since i am so BAD at network-programming and everything else connected with that topic i would appreciate an codeexample so badly!
Pls help me :(
Comment