Version: 2019.2

EditorConnection.RegisterDisconnection

Switch to Manual
public void RegisterDisconnection (UnityAction<int> callback);

Parameters

callbackThe Action that is called when the Player with the given Player ID disconnects.

Description

Registers a callback on a Player when that Player disconnects.