InputActionType列挙型(Enum)
列挙型(Enum)日本語解説は準備中
ひとことで言うと
InputActionTypeは、ロブロックス(Roblox)の列挙型(Enum)です。くわしい日本語解説は準備中のため、下に公式の説明(英語)を載せています。
公式の説明(英語):This enum is used by InputAction.Type to determine which input data type the InputAction will receive.
選べる値(5)
| 名前 | 値 | 説明 |
|---|---|---|
Enum.InputActionType.Bool | 0 | The InputAction will receive boolean values from button inputs, for example true/false on press/release from inputs such as KeyCode.ButtonA or KeyCode.E. This setting also exposes the Class.InputBinding.UIButton|UIButton property on child Class.InputBinding|InputBindings, allowing you to easily hook up press or release of a GuiButton for the action. |
Enum.InputActionType.Direction1D | 1 | The InputAction will receive numerical values, generally from analog gamepad triggers such as KeyCode.ButtonL2 or KeyCode.ButtonR2. This setting also exposes the Class.InputBinding.Up|Up and Class.InputBinding.Down|Down properties on child Class.InputBinding|InputBindings, allowing for boolean inputs or "1D" inputs as composite directions for the action. |
Enum.InputActionType.Direction2D | 2 | The InputAction will receive Vector2 values, generally from thumbstick inputs such as KeyCode.Thumbstick1 and KeyCode.Thumbstick2. This setting also exposes the Class.InputBinding.Up|Up, Class.InputBinding.Down|Down, Class.InputBinding.Left|Left, and Class.InputBinding.Right|Right properties on child Class.InputBinding|InputBindings, allowing for "2D" inputs as composite directions for the action. |
Enum.InputActionType.Direction3D | 3 | The InputAction will receive Vector3 values from inputs assigned to the Class.InputBinding.Up|Up, Class.InputBinding.Down|Down, Class.InputBinding.Left|Left, Class.InputBinding.Right|Right, Class.InputBinding.Forward|Forward, and/or Class.InputBinding.Backward|Backward properties on child Class.InputBinding|InputBindings, allowing for "3D" inputs as composite directions for the action. |
Enum.InputActionType.ViewportPosition | 4 | The InputAction will receive Vector2 values representing the absolute pixel (**X**, **Y**) coordinates of a pointer input in the viewport. |
英語の説明とメンバーの一覧は、Roblox Creator Documentation(InputActionType)をもとにしています(CC BY 4.0)。日本語の解説は、このサイトで独自に書いたものです。