For Agents | Documentation index: https://create.roblox.com/docs/llms.txt | Engine API index: https://create.roblox.com/docs/reference/engine/llms.txt
学习
/
引擎 API
/
类 (Classes)
Object
/
Instance
/
InputAction
Input
Action
*
此内容使用人工智能(Beta)翻译,可能包含错误。若要查看英文页面,请点按
此处
。
摘要
属性
BoolState
:
boolean
Direction1DState
:
number
Direction2DState
:
Vector2
Direction3DState
:
Vector3
DisplayName
:
string
Enabled
:
boolean
PreferredBinding
:
InputBinding
Type
:
Enum.InputActionType
ViewportPositionState
:
Vector2
方法
Fire
(
state:
Variant
)
:
()
已弃用
GetState
()
:
Variant
活动
Pressed
()
:
RBXScriptSignal
Released
()
:
RBXScriptSignal
StateChanged
(
value:
Variant
)
:
RBXScriptSignal
继承成员
58 个继承自
Instance
6 个继承自
Object
API 参考
属性
Bool
State
只读
未复制
不可写入脚本
Roblox 脚本安全性
读取并联
功能: Input
Input
Action.
Bool
State
:
boolean
提供反馈
Direction1
D
State
只读
未复制
不可写入脚本
Roblox 脚本安全性
读取并联
功能: Input
Input
Action.
Direction1
D
State
:
number
提供反馈
Direction2
D
State
只读
未复制
不可写入脚本
Roblox 脚本安全性
读取并联
功能: Input
Input
Action.
Direction2
D
State
:
Vector2
提供反馈
Direction3
D
State
只读
未复制
不可写入脚本
Roblox 脚本安全性
读取并联
功能: Input
Input
Action.
Direction3
D
State
:
Vector3
提供反馈
Display
Name
读取并联
功能: Input
模拟访问权限
Input
Action.
Display
Name
:
string
提供反馈
Enabled
读取并联
功能: Input
模拟访问权限
Input
Action.
Enabled
:
boolean
提供反馈
Preferred
Binding
只读
未复制
读取并联
功能: Input
Input
Action.
Preferred
Binding
:
InputBinding
提供反馈
Type
读取并联
功能: Input
模拟访问权限
Input
Action.
Type
:
Enum.InputActionType
提供反馈
Viewport
Position
State
只读
未复制
不可写入脚本
Roblox 脚本安全性
读取并联
功能: Input
Input
Action.
Viewport
Position
State
:
Vector2
提供反馈
方法
Fire
已弃用
显示详情
Get
State
写入并联
功能: Input
模拟访问权限
Input
Action:
Get
State
(
)
:
Variant
返回
Variant
提供反馈
活动
Pressed
功能: Input
Input
Action.
Pressed
(
)
:
RBXScriptSignal
提供反馈
Released
功能: Input
Input
Action.
Released
(
)
:
RBXScriptSignal
提供反馈
State
Changed
功能: Input
Input
Action.
State
Changed
(
value
:
Variant
)
:
RBXScriptSignal
参数
value
:
Variant
提供反馈
©2026 Roblox Corporation、Roblox、Roblox 标志及 Powering Imagination 是我们在美国及其他国家或地区的注册与未注册商标。
条款
·
隐私政策
·
辅助功能
·
支持
中文(简体)