Version: 5.3 (switch to 5.4b)
言語English
  • C#
  • JS

スクリプト言語

好きな言語を選択してください。選択した言語でスクリプトコードが表示されます。

HostData.gameName

フィードバック

ありがとうございます

この度はドキュメントの品質向上のためにご意見・ご要望をお寄せいただき、誠にありがとうございます。頂いた内容をドキュメントチームで確認し、必要に応じて修正を致します。

閉じる

送信に失敗しました

なんらかのエラーが発生したため送信が出来ませんでした。しばらく経ってから<a>もう一度送信</a>してください。ドキュメントの品質向上のために時間を割いて頂き誠にありがとうございます。

閉じる

キャンセル

マニュアルに切り替える
public var gameName: string;
public string gameName;

説明

ゲーム名を返す

	// Requests info from the master server and prints
	// the game name of each host

function Start() { var hostData : HostData[] = MasterServer.PollHostList(); Debug.Log("Games found: "); for(var element : HostData in hostData) { Debug.Log(element.gameName); } }
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); } } }