Unity Editor crash on stop running

Hi!

When I play the game into the unity editor, connecting to photon, after stop running the game, the unity editor crash :(

I think that it is because the photon connection is not closed. Any idea?

Thanks

Comments

  • Tobias
    Tobias admin
    edited July 2015
    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(); }