言語: 日本語
  • C#
  • JS
  • Boo

スクリプト言語

お好みのスクリプト言語を選択すると、サンプルコードがその言語で表示されます。

GUIUtility.keyboardControl

public static var keyboardControl: int;

Description

キーボードフォーカスを持つコントロールID

	// Click on the text field to see the id of the control.
	
	private var str : String = "A String!";
	function OnGUI() {
		str = GUILayout.TextField(str,10);
		Debug.Log("id: " + GUIUtility.keyboardControl);
	}