Set the minimum update rate for master server host information update.
function StartServer() {
Network.InitializeServer(32, 25002);
// No host information updates after initial registration
MasterServer.updateRate = 0;
MasterServer.RegisterHost("MyUniqueGameType",
"JohnDoes game", "l33t game for all");
}
using UnityEngine; using System.Collections; public class Example : MonoBehaviour { void StartServer() { Network.InitializeServer(32, 25002); MasterServer.updateRate = 0; MasterServer.RegisterHost("MyUniqueGameType", "JohnDoes game", "l33t game for all"); } }
import UnityEngine import System.Collections public class Example(MonoBehaviour): def StartServer() as void: Network.InitializeServer(32, 25002) MasterServer.updateRate = 0 MasterServer.RegisterHost('MyUniqueGameType', 'JohnDoes game', 'l33t game for all')