s&
newspaperAbout
infoAbout s&box newspaperLatest News published_with_changesChanges mapRoadmap monitoringMetrics
gamesGames
sports_esportsBrowse Games rocketDiscover Games
business_centerWorkshop
sports_esportsGames landscapeMaps chairModels textureMaterials apparelClothing constructionMore..
forumForum docsDocs
docsDocumentation dashboardApi Reference schoolTutorials
inputLog in with Steam chevron_leftChange Language
简体中文EnglishРусскийEspañolPortuguês-BrasilDeutsch日本語FrançaisPolskiTürkçe한국어PirateItalianoไทย繁體中文УкраїнськаČeštinaNederlandsMagyarDanskSuomiSvenskaNorskΕλληνικάRomânăБългарскиTiếng ViệtBahasa IndonesiaEspañol-Latinoaméricaالعربية
Api
Editor Classes
Network
chevron_left Editor Classes
class
Network

Static Properties

data_objectActivedata_objectChannelsdata_objectClientdata_objectHostingdata_objectHostPrivacydata_objectSockets

Static Methods

functionsConnectfunctionsDisconnectfunctionsStartHosting
Network
class Editor.EditorUtility .
staticsealedabstractSandbox.Tools

data_object Static Properties 6

Active
bool
True if the network system is active
Channels
Connection[]
Return all of the channels on this connection. If you're the host, it should return all client connections. If you're the client, it should return empty - unless you're in a p2p session (lobby). Returns empty if you're not connected
Client
bool
True if the network system is active and we're the host
Hosting
bool
True if the network system is active and we're the host
HostPrivacy
LobbyPrivacy
Determines who can join a lobby hosted from the editor. Should only be set before creating a lobby. Persists between lobbies.
Sockets
NetworkSocket[]
Return all of the sockets on this connection. If you're the host, it should return all active sockets. If you're the client, it should return empty - unless you're in a p2p session (lobby). Returns empty if you're not connected

functions Static Methods 3

Connect (address)
Connenct to a network address
Disconnect ()
Disconnect from the current network session
StartHosting ()
Start hosting a lobby. If we're not already in play mode, we'll enter play mode first.
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.
  • News
  • Docs
  • Metrics
  • FAQ
  • Forum
  • Discord
  • Twitter