Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.

Question Check if client connect

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

  1. HRDev

    HRDev

    Joined:
    Jun 4, 2018
    Posts:
    28
    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:
    199
  3. itisMarcii_

    itisMarcii_

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