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.Bool0The 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.Direction1D1The 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.Direction2D2The 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.Direction3D3The 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.ViewportPosition4The 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)。日本語の解説は、このサイトで独自に書いたものです。

執筆:鈴木孝昌官公庁のWeb・システム開発を担当する現役プロジェクトマネージャー。沖縄マイクラ部 クロスウェーブで、ロブロックス(Roblox)・マインクラフト(マイクラ)・Scratchなどのプログラミングを指導。マイクラカップ沖縄代表チームを指導(第6回・第7回、第7回TBS賞)。
沖縄マイクラ部で、子どもたちにロブロックス(Roblox)やマインクラフト(マイクラ)のプログラミングを教えています。プロフィールと編集方針
Instagramで教室の様子を見る
noteで記事を読む