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

スクリプト言語

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

KeyCode

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Sumbission failed

For some reason your suggested change could not be submitted. Please try again in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Description

Event.keyCodeによって返されたキーコード。これらはキーボード上の物理キーに直接マッピングされています。

Variables

None 割り当てなし(キーストロークの結果として戻り値となることはありません)
Backspace バックスペース
Delete Delete
Tab Tab
Clear Clear
Return Return
Pause Pause on PC machines.
Escape Escape
Space Space
Keypad0 テンキー0
Keypad1 テンキー1
Keypad2 テンキー2
Keypad3 テンキー3
Keypad4 テンキー4
Keypad5 テンキー5
Keypad6 テンキー6
Keypad7 テンキー7
Keypad8 テンキー8
Keypad9 テンキー9
KeypadPeriod テンキーの.
KeypadDivide テンキーの/
KeypadMultiply テンキーの*
KeypadMinus テンキーの-
KeypadPlus テンキーの+
KeypadEnter テンキーのEnter
KeypadEquals テンキーの=
UpArrow 上矢印キー
DownArrow 下矢印キー
RightArrow 右矢印キー
LeftArrow 左矢印キー
Insert Insert key
Home Home
End End
PageUp Page up
PageDown Page down
F1 F1
F2 F2
F3 F3
F4 F4
F5 F5
F6 F6
F7 F7
F8 F8
F9 F9
F10 F10
F11 F11
F12 F12
F13 F13
F14 F14
F15 F15
Alpha0 キーボード上の0
Alpha1 キーボード上の1
Alpha2 キーボード上の2
Alpha3 キーボード上の3
Alpha4 キーボード上の4
Alpha5 キーボード上の5
Alpha6 キーボード上の6
Alpha7 キーボード上の7
Alpha8 キーボード上の8
Alpha9 キーボード上の9
Exclaim !
DoubleQuote "
Hash #
Dollar
Ampersand &
Quote '
LeftParen (
RightParen )
Asterisk *
Plus +
Comma ,
Minus -
Period .
Slash /
Colon :
Semicolon ;
Less <
Equals =
Greater >
Question ?
At @
LeftBracket [
Backslash \
RightBracket ]
Caret ^
Underscore _
BackQuote `
A a
B b
C c
D d
E e
F f
G g
H h
I i
J j
K k
L l
M m
N n
O o
P p
Q q
R r
S s
T t
U u
V v
W w
X x
Y y
Z z
Numlock Numlock
CapsLock Capslock
ScrollLock Scroll Lock
RightShift Right Shift
LeftShift Left Shift
RightControl Right Control
LeftControl Left Control
RightAlt Right Alt
LeftAlt Left Alt
LeftCommand Left Command
LeftApple Left Command
LeftWindows Left Windows
RightCommand Right Command
RightApple Right Command
RightWindows Right Windows
AltGr Alt Gr
Help Help
Print Print
SysReq Sys Req
Break Break
Menu Menu
Mouse0 1番目 (primary)のマウスボタン
Mouse1 2番目 (secondary) のマウスボタン
Mouse2 3番目のマウスボタン
Mouse3 4番目のマウスボタン
Mouse4 5番目のマウスボタン
Mouse5 6番目のマウスボタン
Mouse6 7番目のマウスボタン
JoystickButton0 ジョイスティックの0ボタン
JoystickButton1 ジョイスティックの1ボタン
JoystickButton2 ジョイスティックの2ボタン
JoystickButton3 ジョイスティックの3ボタン
JoystickButton4 ジョイスティックの4ボタン
JoystickButton5 ジョイスティックの5ボタン
JoystickButton6 ジョイスティックの6ボタン
JoystickButton7 ジョイスティックの7ボタン
JoystickButton8 ジョイスティックの8ボタン
JoystickButton9 ジョイスティックの9ボタン
JoystickButton10 ジョイスティックの10ボタン
JoystickButton11 ジョイスティックの11ボタン
JoystickButton12 ジョイスティックの12ボタン
JoystickButton13 ジョイスティックの13ボタン
JoystickButton14 ジョイスティックの14ボタン
JoystickButton15 ジョイスティックの15ボタン
JoystickButton16 ジョイスティックの16ボタン
JoystickButton17 ジョイスティックの17ボタン
JoystickButton18 ジョイスティックの18ボタン
JoystickButton19 ジョイスティックの19ボタン
Joystick1Button0 ジョイスティック1の0ボタン
Joystick1Button1 ジョイスティック1の1ボタン
Joystick1Button2 ジョイスティック1の2ボタン
Joystick1Button3 ジョイスティック1の3ボタン
Joystick1Button4 ジョイスティック1の4ボタン
Joystick1Button5 ジョイスティック1の5ボタン
Joystick1Button6 ジョイスティック1の6ボタン
Joystick1Button7 ジョイスティック1の7ボタン
Joystick1Button8 ジョイスティック1の8ボタン
Joystick1Button9 ジョイスティック1の9ボタン
Joystick1Button10 ジョイスティック1の10ボタン
Joystick1Button11 ジョイスティック1の11ボタン
Joystick1Button12 ジョイスティック1の12ボタン
Joystick1Button13 ジョイスティック1の13ボタン
Joystick1Button14 ジョイスティック1の14ボタン
Joystick1Button15 ジョイスティック1の15ボタン
Joystick1Button16 ジョイスティック1の16ボタン
Joystick1Button17 ジョイスティック1の17ボタン
Joystick1Button18 ジョイスティック1の18ボタン
Joystick1Button19 ジョイスティック1の19ボタン
Joystick2Button0 ジョイスティック2の0ボタン
Joystick2Button1 ジョイスティック2の1ボタン
Joystick2Button2 ジョイスティック2の2ボタン
Joystick2Button3 ジョイスティック2の3ボタン
Joystick2Button4 ジョイスティック2の4ボタン
Joystick2Button5 ジョイスティック2の5ボタン
Joystick2Button6 ジョイスティック2の6ボタン
Joystick2Button7 ジョイスティック2の7ボタン
Joystick2Button8 ジョイスティック2の8ボタン
Joystick2Button9 ジョイスティック2の9ボタン
Joystick2Button10 ジョイスティック2の10ボタン
Joystick2Button11 ジョイスティック2の11ボタン
Joystick2Button12 ジョイスティック2の12ボタン
Joystick2Button13 ジョイスティック2の13ボタン
Joystick2Button14 ジョイスティック2の14ボタン
Joystick2Button15 ジョイスティック2の15ボタン
Joystick2Button16 ジョイスティック2の16ボタン
Joystick2Button17 ジョイスティック2の17ボタン
Joystick2Button18 ジョイスティック2の18ボタン
Joystick2Button19 ジョイスティック2の19ボタン
Joystick3Button0 ジョイスティック3の0ボタン
Joystick3Button1 ジョイスティック3の1ボタン
Joystick3Button2 ジョイスティック3の2ボタン
Joystick3Button3 ジョイスティック3の3ボタン
Joystick3Button4 ジョイスティック3の4ボタン
Joystick3Button5 ジョイスティック3の5ボタン
Joystick3Button6 ジョイスティック3の6ボタン
Joystick3Button7 ジョイスティック3の7ボタン
Joystick3Button8 ジョイスティック3の8ボタン
Joystick3Button9 ジョイスティック3の9ボタン
Joystick3Button10 ジョイスティック3の10ボタン
Joystick3Button11 ジョイスティック3の11ボタン
Joystick3Button12 ジョイスティック3の12ボタン
Joystick3Button13 ジョイスティック3の13ボタン
Joystick3Button14 ジョイスティック3の14ボタン
Joystick3Button15 ジョイスティック3の15ボタン
Joystick3Button16 ジョイスティック3の16ボタン
Joystick3Button17 ジョイスティック3の17ボタン
Joystick3Button18 ジョイスティック3の18ボタン
Joystick3Button19 ジョイスティック3の19ボタン
Joystick4Button0 ジョイスティック4の0ボタン
Joystick4Button1 ジョイスティック4の1ボタン
Joystick4Button2 ジョイスティック4の2ボタン
Joystick4Button3 ジョイスティック4の3ボタン
Joystick4Button4 ジョイスティック4の4ボタン
Joystick4Button5 ジョイスティック4の5ボタン
Joystick4Button6 ジョイスティック4の6ボタン
Joystick4Button7 ジョイスティック4の7ボタン
Joystick4Button8 ジョイスティック4の8ボタン
Joystick4Button9 ジョイスティック4の9ボタン
Joystick4Button10 ジョイスティック4の10ボタン
Joystick4Button11 ジョイスティック4の11ボタン
Joystick4Button12 ジョイスティック4の12ボタン
Joystick4Button13 ジョイスティック4の13ボタン
Joystick4Button14 ジョイスティック4の14ボタン
Joystick4Button15 ジョイスティック4の15ボタン
Joystick4Button16 ジョイスティック4の16ボタン
Joystick4Button17 ジョイスティック4の17ボタン
Joystick4Button18 ジョイスティック4の18ボタン
Joystick4Button19 ジョイスティック4の19ボタン