Unity Leap Motion错误消息“INPUT AXIS NOT SET UP”

问题描述 投票:0回答:1

我目前正在使用Leap Motion,HTC Vive和Unity进行我的第一个VR项目。当我创建一个新项目并添加LeapRig时,一切都很好,但在将交互管理器作为LeapRig的子项添加后,我收到以下错误消息,该消息每秒重复多次:

INPUT AXIS NOT SET UP.  Go to your Input Manager and add a definition for  on the 9th Joystick Axis.
UnityEngine.Debug:LogError(Object)
Leap.Unity.Interaction.InteractionXRController:fixedUpdateGraspButtonState(Boolean) (at Assets/LeapMotion/Modules/InteractionEngine/Scripts/InteractionXRController.cs:733)
Leap.Unity.Interaction.InteractionXRController:fixedUpdateGraspingState() (at Assets/LeapMotion/Modules/InteractionEngine/Scripts/InteractionXRController.cs:706)
Leap.Unity.Interaction.InteractionController:fixedUpdateGrasping() (at Assets/LeapMotion/Modules/InteractionEngine/Scripts/InteractionController.cs:1783)
Leap.Unity.Interaction.InteractionController:Leap.Unity.Interaction.IInternalInteractionController.FixedUpdateController() (at Assets/LeapMotion/Modules/InteractionEngine/Scripts/InteractionController.cs:259)
Leap.Unity.Interaction.InteractionManager:fixedUpdateInteractionControllers() (at Assets/LeapMotion/Modules/InteractionEngine/Scripts/InteractionManager.cs:372)
Leap.Unity.Interaction.InteractionManager:FixedUpdate() (at Assets/LeapMotion/Modules/InteractionEngine/Scripts/InteractionManager.cs:299)

有谁知道为什么会发生这种情况以及如何解决这个问题?我已经使用了交互管理器,但突然发生了此错误消息。我也可以运行我的程序,但是错误让我感到困扰,并且很难正确使用控制台。

来自德国的问候

unity3d virtual-reality leap-motion
1个回答
0
投票

来自Interaction Engine文档:

如果您打算将交互引擎与Oculus Touch或Vive控制器一起使用,则需要先配置项目的输入设置,然后才能使用控制器来掌握对象。输入设置是导入包无法更改的项目设置,这就是我们无法为您配置这些输入设置的原因。如果您只对使用交互引擎的Leap手感兴趣,可以跳过本节。

转到输入管理器(编辑 - >项目设置 - >输入)并设置您想要用于左手和右手抓握的操纵杆轴。 (在Unity的说法中,控制器触发器仍被称为“操纵杆”。)然后确保每个InteractionXRController的抓取轴都设置为您设置的相应轴。左侧和右侧InteractionXRControllers的默认预制件将分别查找名为LeftXRTriggerAxis和RightXRTriggerAxis的轴。

有用的图表和轴标签可以在Unity的文档中找到。

© www.soinside.com 2019 - 2024. All rights reserved.