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

  • TobiasTobias 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):

    /// Called by Unity when the application is closed. Tries to disconnect. protected void OnApplicationQuit() { client.Disconnect(); }
Sign In or Register to comment.