在Unity3D中导入Leap_Motion_Interaction_Engine_1.2.0包,在参考其示例Example时,可以增改两个小部分,将适应用VR开发的示例转为Desktop模式。
用Example 2举例,更改前:
注意手的朝向
更改后:
示例的初始模式默认是采用VR模式,即开发时,LeapMotion需要放在脑门上,并且绿灯朝上,才能正常识别手势。
通过阅读帮助文档,修改以下部分,可以将LeapMotion正常放在桌面上进行识别。
<1>将LeapXRserviceProvider 改为LeapSer