Search Unity

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

Discussion in 'Connected Games' 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. unity_TiWVHLhXFx1HIw

    unity_TiWVHLhXFx1HIw

    Joined:
    Jul 18, 2019
    Posts:
    1
    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.