RegisterConnection(UnityAction<int>)
Registers a callback, executed when a new Player connects to the Editor.
Read time 1 minuteLast updated 12 days ago
Definition
- Type: Method
- Namespace: UnityEditor.Networking.PlayerConnection
- Assembly: UnityEditor.CoreModule
public void RegisterConnection(UnityAction<int> callback)
Parameters
Action called when a new Player connects, with the Player ID of the Player.