Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


Send

Sends data to the connected Players.
Read time 1 minuteLast updated 11 days ago

Definition

Send(Guid, byte[], int)

Sends data to the connected Players.
public void Send(Guid messageId, byte[] data, int playerId)

Parameters

messageId

The type ID of the message to send to the connected Players.

data


playerId

The ID of the Player that you want to sent this message to. If you want to send it to all Players, set this to 0.

Send(Guid, byte[])

Sends data to the connected Players.
public void Send(Guid messageId, byte[] data)

Parameters

messageId

The type ID of the message to send to the connected Players.

data