# playerId

> The ID of the player connected.

## Definition

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

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