Version: 2022.1
言語: 日本語
Method group is Obsolete

ConnectionConfig.MinUpdateTimeout

マニュアルに切り替える
Obsolete public uint MinUpdateTimeout ;

説明

Defines minimum time in milliseconds between sending packets. This duration may be automatically increased if required by flow control. Default value = 10.

When Send() is called, Unity Multiplayer won’t send the message immediately. Instead, once every SendTimeout milliseconds each connection is checked to see if it has something to send. While initial and minimal send timeouts can be set, these may be increased internally due to network conditions or buffer overflows.

using UnityEngine;
using UnityEngine.Networking;

public class ExampleScript : MonoBehaviour { void Start() { ConnectionConfig myConfig = new ConnectionConfig(); myConfig.AddChannel(QosType.Unreliable); myConfig.AddChannel(QosType.UnreliableFragmented); myConfig.MinUpdateTimeout = 2; //2ms } }