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

スクリプト言語

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

Input.anyKey

public static var anyKey: bool;

Description

現在何らかのキーまたはマウスボタンが押されているかどうか (Read Only)

	// Detects if any key has been pressed.

	function Update() {
		if(Input.anyKey)
			Debug.Log("A key or mouse click has been detected");
	}