Legacy Documentation: Version 5.2
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

NetworkManager.OnMatchList

Switch to Manual
public void OnMatchList(Networking.Match.ListMatchResponse matchList);

Parameters

matchList A list of available matches.

Description

This is invoked when a list of matches is returned from ListMatches().

The default implementation of this just stores the list of matches.

class MatchManager : NetworkManager
{
    public override void OnMatchList(ListMatchResponse matchList)
    {
        matches = matchList.matches;
    }
}