Version: 2022.3

EditorConnection.RegisterDisconnection

切换到手册
public void RegisterDisconnection (UnityAction<int> callback);

参数

callback 当具有给定 Player ID 的 Player 断开连接时调用的 Action。

描述

当 Player 断开连接时,对该 Player 注册回调。