RegisterConnection(UnityAction<int>)
Registers a callback, executed when a new Player connects to the Editor.
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Method
- Namespace: UnityEditor.Networking.PlayerConnection
- Assembly: UnityEditor
public void RegisterConnection(UnityAction<int> callback)
Parameters
Action called when a new Player connects, with the Player ID of the Player.