Legacy Documentation: Version 4.5.0

Script language:

  • JS
  • C#
  • Boo
Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

Network.sendRate

static var sendRate: float;
static float sendRate;
static sendRate as float

Description

The default send rate of network updates for all Network Views.

	function Awake () {
		// Increase default send rate
		Network.sendRate = 25;
	}
using UnityEngine;
using System.Collections;

public class ExampleClass : MonoBehaviour {
    void Awake() {
        Network.sendRate = 25;
    }
}
import UnityEngine
import System.Collections

public class ExampleClass(MonoBehaviour):

	def Awake() as void:
		Network.sendRate = 25