UnityEngine.Networking.NetworkManager.StartServer C# (CSharp) Method

StartServer() public method

This starts a new server.

public StartServer ( ) : bool
return bool
        public bool StartServer()
        {
            return this.StartServer(null);
        }

Same methods

NetworkManager::StartServer ( ConnectionConfig config, int maxConnections ) : bool
NetworkManager::StartServer ( MatchInfo info ) : bool
NetworkManager::StartServer ( MatchInfo info, ConnectionConfig config, int maxConnections ) : bool

Usage Example

Example #1
0
 public void ServerButton()
 {
     if (UnityEngine.Application.platform != RuntimePlatform.WebGLPlayer)
     {
         manager.StartServer();
     }
 }
All Usage Examples Of UnityEngine.Networking.NetworkManager::StartServer