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.
  2. Join us on Thursday, June 8, for a Q&A with Unity's Content Pipeline group here on the forum, and on the Unity Discord, and discuss topics around Content Build, Import Workflows, Asset Database, and Addressables!
    Dismiss Notice

OnDisconnectedFromServer Rox!

Discussion in 'Multiplayer' started by JavaChilly, Jun 4, 2008.

  1. JavaChilly

    JavaChilly

    Joined:
    Mar 8, 2008
    Posts:
    33
    I'd just like to thank the Unity team for doing one very important thing right. OnDisconnectedFromServer is called when the game host user closes the browser tab or window. This makes some much needed cleanup work right. Thank you so much. :)

    I just wish it worked when they navigated to a new page too. Can certainly work around that with some javascript though.