MonoBehaviour.OnFailedToConnectToMasterServer Manual     Reference     Scripting  
Scripting > Runtime Classes > MonoBehaviour
MonoBehaviour.OnFailedToConnectToMasterServer

function OnFailedToConnectToMasterServer (error : NetworkConnectionError) : void

Description

Called on clients or servers when there is a problem connecting to the MasterServer.

The reason for the error is passed in as a NetworkConnectionError enum.

JavaScript
function OnFailedToConnectToMasterServer(info :    NetworkConnectionError) {
Debug.Log("Could not connect to master server: "+ info);
}