# playerId

> The ID of the player connected.

## Definition

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

```csharp
public int playerId { get; }
```
