Skip to content

Commit c9bf6d7

Browse files
committed
Update README
1 parent f1057ae commit c9bf6d7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

InputDeviceDetector/Assets/Input Device Detector/How to use.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ RyanIndieDev - YouTube channel: https://www.youtube.com/channel/UCSRCf2y6LV8vpKS
1919
1. 将安装包导入到项目中。
2020
2. 将Prefab文件夹中的 Input Device Detector 预制体拖到场景中。
2121
3. 使用脚本的事件触发器来登记设备切换时所需要触发的功能。
22-
4. 如果需要在脚本中为输入设备切换事件添加监听函数,请先添加InputDeviceDetection命名空间,然后使用调用设备切换事件的AddListener()函数来登记功能。
22+
4. 如果需要在脚本中为输入设备切换事件添加监听函数,请先添加InputDeviceDetection命名空间,然后调用设备切换事件的AddListener()函数来登记功能。
2323
5. 如果您只需要检测UI输入设备的切换,请勾选"Detect UI Input Only"选项。
2424
6. 脚本中有两个方便的静态函数(InputDeviceDetector.ShowCursor()/HideCursor())用来切换光标的显示/隐藏。
2525

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ RyanIndieDev - YouTube channel: https://www.youtube.com/channel/UCSRCf2y6LV8vpKS
2626
1. 将安装包导入到项目中。
2727
2. 将Prefab文件夹中的 Input Device Detector 预制体拖到场景中。
2828
3. 使用脚本的事件触发器来登记设备切换时所需要触发的功能。
29-
4. 如果需要在脚本中为输入设备切换事件添加监听函数,请先添加InputDeviceDetection命名空间,然后使用调用设备切换事件的AddListener()函数来登记功能。
29+
4. 如果需要在脚本中为输入设备切换事件添加监听函数,请先添加InputDeviceDetection命名空间,然后调用设备切换事件的AddListener()函数来登记功能。
3030
5. 如果您只需要检测UI输入设备的切换,请勾选"Detect UI Input Only"选项。
3131
6. 脚本中有两个方便的静态函数(InputDeviceDetector.ShowCursor()/HideCursor())用来切换光标的显示/隐藏。
3232

0 commit comments

Comments
 (0)