Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Quick join match joining empty room

Discussion in 'Multiplayer' started by MythicalCity, Sep 14, 2016.

  1. MythicalCity

    MythicalCity

    Joined:
    Feb 10, 2011
    Posts:
    420
    I'm developing a quick join function that gets a list of matches, iterates through the list and finds matches that have currently players less than the max players allowed and then attempts to join the first of those matches it finds, or creates one if none are available. This works mostly but sometimes if a match was created and then quit quickly (ie: during testing) then the join finds that match and tries to join it but never connects as I think the server player has already left. Is there anything I can check in the match object to see if I can indeed join it or if it's not a valid match because the server has left?
     
  2. Kj756

    Kj756

    Joined:
    Jan 22, 2017
    Posts:
    7
    How did you go about integrating a Quick Join? Do you mind telling us your steps or point us in the direction?
     
  3. MythicalCity

    MythicalCity

    Joined:
    Feb 10, 2011
    Posts:
    420
    I actually stopped using Unet because it was just too difficult to get working. Switched to Photon instead where quick matches are easy.