Version: 2018.1
public static HostData[] PollHostList ();

Description

Check for the latest host list received by using MasterServer.RequestHostList.

You can clear the current host list with MasterServer.ClearHostList. That way you can be sure that the list returned by is up to date.

using UnityEngine;
using System.Collections;

public class ExampleClass : MonoBehaviour { void Awake() { MasterServer.ClearHostList(); MasterServer.RequestHostList("LarusTest"); } void Update() { if (MasterServer.PollHostList().Length != 0) { HostData[] hostData = MasterServer.PollHostList(); int i = 0; while (i < hostData.Length) { Debug.Log("Game name: " + hostData[i].gameName); i++; } MasterServer.ClearHostList(); } } }