# RegisterDisconnection(UnityAction<int>)

> Registers a callback on a Player when that Player disconnects.

## Definition

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

```csharp
public void RegisterDisconnection(UnityAction<int> callback)
```

### Parameters

**** (\[UnityAction\<int>]\(/engine/6000.7/script-reference/unityengine/events/unityaction)): The Action that is called when the Player with the given Player ID disconnects.
