文档

Unity Engine

Unity Engine

Send

Sends data to the connected Players.
阅读时间1 分钟最后更新于 1 个月前

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