Version: 2017.1
public static void ClearHostList ();

설명

Clear the host list which was received by MasterServer.PollHostList.

Useful if you want to update the list and want to make sure you don't use the older data.

using UnityEngine;
using System.Collections;

public class ExampleClass : MonoBehaviour { void Awake() { MasterServer.ClearHostList(); MasterServer.RequestHostList("MyUniqueGameType"); } 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(); } } }