Legacy Documentation: Version 5.1
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

HostData.guid

Switch to Manual
public var guid: string;

Description

The GUID of the host, needed when connecting with NAT punchthrough.

	// Requests info from the master server and prints
	// the GUID

function Start() { var hostData : HostData[] = MasterServer.PollHostList(); for(var element : HostData in hostData) { Debug.Log(element.gameName + " guid: " + element.guid + "\n"); } }