# Send

> Sends data to the connected Players.

## Definition

* **Type:** Method
* **Namespace:** [UnityEditor.Networking.PlayerConnection](/engine/6000.3/script-reference/unityeditor/networking/playerconnection.md)
* **Assembly:** UnityEditor

## Send(Guid, byte\[], int)

Sends data to the connected Players.

```csharp
public void Send(Guid messageId, byte[] data, int playerId)
```

### Parameters

**** (\[Guid]\(https\://learn.microsoft.com/dotnet/api/system.guid)): The type ID of the message to send to the connected Players.**** (\[byte\[]]\(https\://learn.microsoft.com/dotnet/api/system.byte)): **** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): 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.

```csharp
public void Send(Guid messageId, byte[] data)
```

### Parameters

**** (\[Guid]\(https\://learn.microsoft.com/dotnet/api/system.guid)): The type ID of the message to send to the connected Players.**** (\[byte\[]]\(https\://learn.microsoft.com/dotnet/api/system.byte)):&#x20;
