Legacy Documentation: Version 2018.2 (Go to current version)
LanguageEnglish
  • C#

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.

Did you find this page useful? Please give it a rating: