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 How to send reconnecting when server shutdown?

Discussion in 'Multiplayer' started by argenestel, Jun 7, 2022.

  1. argenestel

    argenestel

    Joined:
    Mar 28, 2022
    Posts:
    2
    Hi
    I wanted to know how can i setup a callback which will startclient reconnecting if server get shutdown?
     
  2. PcMaster24

    PcMaster24

    Joined:
    Mar 1, 2014
    Posts:
    3
    you need to add your reconnection login inside OnClientDisconnect and/or OnServerDisconnect.
    make sure you know first if it's a voluntary logout, or the server itself who went down
     
    argenestel likes this.