Search Unity

Question Check if client connect

Discussion in 'Netcode for GameObjects' started by HRDev, Jun 23, 2022.

  1. HRDev

    HRDev

    Joined:
    Jun 4, 2018
    Posts:
    58
    Hi there is there a way to understand if the client has failed the connection, wait, and try again?
     
  2. CosmoM

    CosmoM

    Joined:
    Oct 31, 2015
    Posts:
    204
  3. itisMarcii_

    itisMarcii_

    Joined:
    Apr 5, 2022
    Posts:
    111
    Code (CSharp):
    1. NetworkManager.Singleton.OnClientDisconnectCallback += TryAgain;