Version: 2017.3

NetworkTransport.ReceiveRelayEventFromHost

Cambiar al Manual
public static Networking.NetworkEventType ReceiveRelayEventFromHost (int hostId, out byte error);

Parámetros

hostId The host ID to check for events.
error Error (can be cast to NetworkError for more information).

Valor de retorno

NetworkEventType Type of event returned.

Descripción

Polls the host for the following events: NetworkEventType.ConnectEvent and NetworkEventType.DisconnectEvent. Can only be called by the relay group owner.