Search Unity

Resolved Preventing from players to join after a game begins

Discussion in 'Lobby' started by lavagoatGG, Feb 13, 2023.

  1. lavagoatGG

    lavagoatGG

    Joined:
    Apr 16, 2022
    Posts:
    229
    Hello,
    I am using the lobby service to create lobbies of players and then start the game session. After the game session starts, how to I make the lobby not appear on lobby queries? Is there a built in feature for this or do I have to change the lobby data?
    Thank you.
     
  2. bartj-unity

    bartj-unity

    Unity Technologies

    Joined:
    Sep 9, 2021
    Posts:
    26
    You can turn the lobby's "IsPrivate" value on in order to hide it in queries. If you want to disable players from being able to join it specifically, then you can turn on the lobby's "IsLocked" value.
     
  3. lavagoatGG

    lavagoatGG

    Joined:
    Apr 16, 2022
    Posts:
    229
    Thank you! I remembered there are options like this but couln't find them in the documentation.