Version: 2017.2
public void ServerChangeScene (string newSceneName);

파라미터

newSceneName The name of the scene to change to. The server will change scene immediately, and a message will be sent to connected clients to ask them to change scene also.

설명

This causes the server to switch scenes and sets the networkSceneName.

Clients that connect to this server will automatically switch to this scene. This is called autmatically if onlineScene or offlineScene are set, but it can be called from user code to switch scenes again while the game is in progress. This automatically sets clients to be not-ready. The clients must call NetworkClient.Ready() again to participate in the new scene.