s&
newspaper
About
info
About s&box
newspaper
Latest News
published_with_changes
Changes
map
Roadmap
monitoring
Metrics
games
Games
sports_esports
Browse Games
rocket
Discover Games
business_center
Workshop
sports_esports
Games
landscape
Maps
chair
Models
texture
Materials
apparel
Clothing
construction
More..
forum
Forum
docs
Docs
docs
Documentation
dashboard
Api Reference
input
Log in with Steam
chevron_left
Change Language
简体中文
English
Русский
Español
Português-Brasil
Deutsch
日本語
Français
Polski
Türkçe
한국어
Pirate
Italiano
ไทย
繁體中文
Українська
Čeština
Nederlands
Magyar
Dansk
Suomi
Svenska
Norsk
Ελληνικά
Română
Български
Tiếng Việt
Bahasa Indonesia
Español-Latinoamérica
العربية
Api
Classes
NetworkingSettings
chevron_left
Classes
class
NetworkingSettings
search
Constructors
functions
NetworkingSettings
Properties
data_object
AutoSwitchToBestHost
data_object
ClientsCanDestroyObjects
data_object
ClientsCanRefreshObjects
data_object
ClientsCanSpawnObjects
data_object
DestroyLobbyWhenHostLeaves
data_object
UpdateRate
menu
NetworkingSettings
A class that holds all configured networking settings for a game. This is serialized as a config and shared from the server to the client.
class
Sandbox
.
account_tree
extends
ConfigData
Sandbox.Engine
build
Constructors
1
NetworkingSettings
(
)
data_object
Properties
6
AutoSwitchToBestHost
bool
Whether to periodically switch to the best host candidate. Candidates are scored based on their average ping and connection quality to all other peers.
ClientsCanDestroyObjects
bool
By default, can clients destroy objects. This can be changed per connection after join.
ClientsCanRefreshObjects
bool
By default, can clients refresh objects. This can be changed per connection after join.
ClientsCanSpawnObjects
bool
By default, can clients create objects. This can be changed per connection after join.
DestroyLobbyWhenHostLeaves
bool
Whether to disband the game lobby when the host leaves.
UpdateRate
float
The frequency at which the network system will send updates to clients. Higher is better but you probably want to stay in the 10-60 range.
Inheritance
ConfigData
NetworkingSettings
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.