Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Please explain me about multiplayer matchmaking with new rooms process

Discussion in 'Multiplayer' started by bigdaddy69dev, Jul 10, 2021.

  1. bigdaddy69dev


    Jul 10, 2021
    Let's put that I'm making a moba game. Whenever there are 10 players queuing, a new game room (instance) will be created and they will be sent into that new game room just like a typical online game. So if there are 30 concurrent players, there will be a total of 3 game rooms running. right?

    Can someone pls explain me in general how the process of creating a new room (instance) and putting the players there works. I'm struggling to find tutorials online as most of the tutorials are about client => host connections.

    Here is my idea. Please clarify me if the idea is right or wrong. There will be a lobby server to which all the players will connect to queue the game. If the queue has reached 10 players, a new game instance with gameplay scene loaded will be run with some command line arguments, a new server connection will start there and the 10 players will be removed from lobby server connection and will have to connect to the new instance's connection.
    Last edited: Jul 10, 2021
  2. Murgilod


    Nov 12, 2013
    Connect them to the instance before disconnecting them from the lobby.