class in UnityEngine
Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.Close
For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.Close
The network class is at the heart of the network implementation and provides the core functions.
This class configures the network interface and all the network parameters. You use it to set up a server or connect to one and have a row of helper functions to help you with those tasks. For more information on what is exposed in the editor see the Network Manger component reference.
|Called on the client when you have successfully connected to a server.
|Called on client during disconnection from server, but also on the server when the connection has disconnected.
|Called on the client when a connection attempt fails for some reason.
|Called on objects which have been network instantiated with Network.Instantiate.
|Called on the server whenever a new player has successfully connected.
|Called on the server whenever a player is disconnected from the server.
|Used to customize synchronization of variables in a script watched by a network view.
|Called on the server whenever a Network.InitializeServer was invoked and has completed.
Did you find this page useful? Please give it a rating: