Quantcast
Channel: Multiplayer
Viewing all articles
Browse latest Browse all 16796

ServerChangeScene dont switch scene on clients.

$
0
0
Hi there,

I'm trying to tell my clients to switch scene from the server using the ServerChangeScene command. When I call the function, the server switch the scene correctly but nothing happens on clients. I search a lot but don't found a solution.

I dont want to use autoswitch using the NetworkManager inspector. I want to control it from code.

Here is my simple code, when player is on main menu, and want to switch to forest scene when 2 clients are connected:

Code (CSharp):
  1. class...
ServerChangeScene dont switch scene on clients.

Viewing all articles
Browse latest Browse all 16796

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>