Version: 2017.2
public string gameName ;

描述

游戏名称(例如 John Doe's Game)。

using UnityEngine;
using System.Collections;

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