Version: 2017.1
public string guid ;

描述

通过 NAT 穿透连接时所需的主机 GUID。

using UnityEngine;
using System.Collections;

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