根据设计,该模块与控制器/鼠标输入具有相同的功能。响应输入时会发送按钮按压、拖拽以及类似事件。
当鼠标/输入设备移动时,该模块将指针事件发送到组件,并使用图形射线投射器 (Graphics Raycaster)和物理射线投射器 (Physics Raycaster) 来计算给定指针设备当前指向的元素。您可以配置这些射线投射器来检测或忽略场景的某些部分,从而满足您的要求。
The module sends move events and submit / cancel events in response to Input tracked via the Input window. This works for both keyboard and controller input. The tracked axis and keys can be configured in the module’s inspector.
属性: | 功能: |
---|---|
Horizontal Axis | 为水平轴按钮输入所需的管理器名称。 |
Vertical Axis | 为垂直轴输入所需的管理器名称。 |
Submit Button | 为 Submit 按钮输入所需的管理器名称。 |
Cancel Button | 为 Cancel 按钮输入所需的管理器名称。 |
Input Actions Per Second | 每秒允许的键盘/控制器输入数量。 |
Repeat Delay | 每秒输入操作重复率生效前的延迟秒数。 |
Force Module Active | Enable this property to force this Standalone Input Module to be active. |
该模块:
该模块的流程如下