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

How to List only not started Matches in UNET lobby manager?

Discussion in 'UNet' started by Guhanesh, Feb 24, 2016.

  1. Guhanesh

    Guhanesh

    Joined:
    Aug 3, 2013
    Posts:
    7
    This is my code to list matches in lobby manager
    public void listMatchh()
    {
    AutoMachLobby.singleton.matchMaker.ListMatches(0, 6, "auto", OnGUIMatchList);
    }
    This code list both started games and not started games ,I mean it lists games that are both in lobby scene and play scene.
    I want to list only not started games(games in lobby scene)
     
    Last edited: Apr 22, 2016
    tugacoder likes this.
  2. tugacoder

    tugacoder

    Joined:
    Nov 30, 2015
    Posts:
    11
    Need to do exactly the same and don't know how. Can anyone offer a tip on this please?
     
  3. naodisseporfavor

    naodisseporfavor

    Joined:
    Jul 18, 2019
    Posts:
    5
    Code (CSharp):
    1. public class GameLobbyManager : NetworkLobbyManager
    2. {
    3.         public override void OnLobbyServerPlayersReady()
    4.         {
    5.             matchMaker.SetMatchAttributes(matchInfo.networkId, false, 0, OnSetMatchAttribute);
    6.             ServerChangeScene(playScene);
    7.         }
    8. }
    9.