Network.SetSendingEnabled

Cambiar al Manual
public static void SetSendingEnabled (int group, bool enabled);

Descripción

Enables or disables transmission of messages and RPC calls on a specific network group number.

This can be set when you know you are not sending anything useful to other clients, such as before you have loaded you level completely. The Network level loading page has an example of how to use this function.


public static void SetSendingEnabled (NetworkPlayer player, int group, bool enabled);

Descripción

Enable or disable transmission of messages and RPC calls based on target network player as well as the network group.

When used on a client, the only NetworkPlayer possible is the server.

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