Versions with this page:
Versions without this page:
class in UnityEngine.Networking
此属性用于配置由 NetworkBehaviour 基类派生的脚本的网络设置。
using UnityEngine.Networking;[NetworkSettings(channel = 1, sendInterval = 0.2f)] class MyScript : NetworkBehaviour { [SyncVar] int value; }