Version: 5.4

NetworkTransport.ConnectWithSimulator

Cambiar al Manual
public static int ConnectWithSimulator (int hostId, string address, int port, int exeptionConnectionId, out byte error, Networking.ConnectionSimulatorConfig conf);

Parámetros

hostId Host id.
address Peer ip.
port Peer port.
exeptionConnectionId Special connection id or 0 for default.
error Returned error.
conf Simulation configuration definec latency for this connection.

Valor de retorno

int ConnectionId on success (otherwise zero).

Descripción

Connect with simulated latency.

Will establish connection between peers and configure it to simulate internet latency (works on editor and development build only).