TrySend
Attempts to send data from the Editor to the connected Players.
Read time 1 minuteLast updated 12 days ago
Definition
- Type: Method
- Namespace: UnityEditor.Networking.PlayerConnection
- Assembly: UnityEditor.CoreModule
TrySend(Guid, byte[], int)
Attempts to send data from the Editor to the connected Players.
public bool TrySend(Guid messageId, byte[] data, int playerId)
Parameters
Returns
Type | Description |
|---|---|
| bool | Returns true when the Editor sends data successfully, and false when there is no space in the socket ring buffer or sending fails. |
TrySend(Guid, byte[])
Attempts to send data from the Editor to the connected Players.
public bool TrySend(Guid messageId, byte[] data)
Parameters
Returns
Type | Description |
|---|---|
| bool | Returns true when the Editor sends data successfully, and false when there is no space in the socket ring buffer or sending fails. |