Version: 2017.2
public string gameType ;

描述

游戏类型(例如“MyUniqueGameType”)。

using UnityEngine;
using System.Collections;

public class ExampleClass : MonoBehaviour { void Start() { HostData[] hostData = MasterServer.PollHostList(); foreach (HostData element in hostData) { Debug.Log(element.gameType); } } }