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 } }
Did you find this page useful? Please give it a rating: