Method group is Obsolete

NetworkSettingsAttribute

class in UnityEngine.Networking

切换到手册
Obsolete

描述

此属性用于配置由 NetworkBehaviour 基类派生的脚本的网络设置。

using UnityEngine.Networking;

[NetworkSettings(channel = 1, sendInterval = 0.2f)] class MyScript : NetworkBehaviour { [SyncVar] int value; }