LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

This version of Unity is unsupported.

NetworkClient.ConnectWithSimulator

public void ConnectWithSimulator(string serverIp, int serverPort, int latency, float packetLoss);

Parameters

serverIpTarget IP address or hostname.
serverPortTarget port number.
latencySimulated latency in milliseconds.
packetLossSimulated packet loss percentage.

Description

Connect client to a NetworkServer instance with simulated latency and packet loss.