s&
About
The Project
infoAbout s&box mapRoadmap monitoringMetricsEngine startup and usage numbers
Updates
newspaperLatest News published_with_changesChangesRelease-by-release changelog
Games
Browse Games Discover Games
gamejamslive now

Game Jam III

Ends Fri 25 Sep
ThemeOne More Round

The jam is running. Build something, or play the entries.

£50,000
prizepool
View the jam
Workshop
Playable
sports_esportsGamesStandalone games and gamemodes
Assets
landscapeMaps view_in_arModels textureMaterials apparelClothing
appsEverythingEvery asset type in one list
Forum
Learn
Documentation
rocket_launchGetting Started docsDocumentation apiAPI Reference
Resources
schoolTutorials manage_searchCode Search
inputLog in with Steam
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.
Facepunch
  • News
  • Docs
  • Metrics
  • FAQ
  • Forum
  • Discord
  • Twitter