Version: 2017.1

EditorConnection.RegisterConnection

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

Parameters

callback Action called when a new Player connects, with the Player ID of the Player.

Description

Registers a callback, executed when a new Player connects to the Editor.