Version: 2018.2

NetworkTransport.NotifyWhenConnectionReadyForSend

マニュアルに切り替える
public static bool NotifyWhenConnectionReadyForSend (int hostId, int connectionId, int notificationLevel, out byte error);

パラメーター

hostIdHost ID.
connectionIdConnection ID.
notificationLevelDefines how many free slots in the incoming queue should be available before [GlobalConfig.ConnectionReadyForSend] callback is triggered.
errorエラーコード

戻り値

bool Result, if false error will show error code.

説明

This method allows you to specify that notifications callbacks should be called when Unity's networking can send more messages than defined in notificationLevel.

Should be called every time when you want to be notified in this event.

Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961