Class NetworkManager
Inheritance
System.Object
Syntax
public class NetworkManager : MonoBehaviour
Fields
Server
Declaration
public NetworkServer Server
Client
Declaration
public NetworkClient Client
NetworkSceneManager
Declaration
public NetworkSceneManager NetworkSceneManager
ServerObjectManager
Declaration
public ServerObjectManager ServerObjectManager
ClientObjectManager
Declaration
public ClientObjectManager ClientObjectManager
ValidateReferences
Declaration
public bool ValidateReferences
Properties
IsNetworkActive
True if the server or client is started and running This is set True in StartServer / StartClient, and set False in StopServer / StopClient
Declaration
public bool IsNetworkActive { get; }
NetworkMode
helper enum to know if we started the NetworkManager as server/client/host.
Declaration
public NetworkManagerMode NetworkMode { get; }