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:
ServerChangeScene dont switch scene on clients.
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):
- class...