Unity Editor crash on stop running
Options
Comments
-
In Unity, you have to stop the connection when the app quits. Implement this (with your client instance) in one of your scripts (and make sure it is in the scene all the time):
/// <summary>Called by Unity when the application is closed. Tries to disconnect.</summary> protected void OnApplicationQuit() { client.Disconnect(); }
0