Search Unity

  1. We are migrating the Unity Forums to Unity Discussions. On July 12, the Unity Forums will become read-only.

    Please, do not make any changes to your username or email addresses at id.unity.com during this transition time.

    It's still possible to reply to existing private message conversations during the migration, but any new replies you post will be missing after the main migration is complete. We'll do our best to migrate these messages in a follow-up step.

    On July 15, Unity Discussions will become read-only until July 18, when the new design and the migrated forum contents will go live.


    Read our full announcement for more information and let us know if you have any questions.

Third Party [Photon Turnbased] Loosing connection with Room

Discussion in 'Multiplayer' started by Martinx09, Jan 13, 2016.

  1. Martinx09

    Martinx09

    Joined:
    Sep 27, 2013
    Posts:
    22
    I've managed to get 2 clients on same room and it works fine,
    but only for like 20-30 seconds.
    For the first seconds LocalPlayer.ID is 1 for the first client and 2 for the second.
    But after a little while they both become -1 and CurrentRoom.Name becomes null.
    So its obvious to me that client gets kicked from the room for some reason.
    What could be causing this?

    I don't even do anything, just leave the clients open and wait 30 seconds,
    then check again for the IDs and Name of the Room and they changed.
     
  2. Martinx09

    Martinx09

    Joined:
    Sep 27, 2013
    Posts:
    22
    Solved:
    As simple as Application.runInBackground = true;
    My bad :)
     
    tobiass likes this.