johnsoncodehk 发表于 2021-12-12 12:13

leapmotion 导入 unity 3D 教程

软件版本:
               unity 3D :2018.1.9f1
               leapmotion :Leap_Motion_Core_Assets_ 4.4.0
               handmoudle : Leap_Motion_Hands_Module_2.1.4


前提:安装好leapmotion驱动
1、导入模块
      新建一个工程项目,将Leap_Motion_Core_Assets_ 4.4.0模块和Leap_Motion_Hands_Module_2.1.4模块导入工程项目


2、将leapmotion\core\Prefabs\LeapHandController预制体拖进Hierarchy,
3、创建一个空物体,GameObject-CreatEmpty,命名为leaphands(名字可以自己取)
4、将leapmotion\core\Prefabs\HandModelsNonHuman下的Capsule Hand Left和Capsule Hand Right拖到刚才的leaphands下面
5、同样,将leapmotion\core\Prefabs\HandModelsPhysical下的RigidRoundHand_L和RigidRoundHand_R拖到刚才的leaphands      下面


6、选中LeapHandController,在Inspector中,Model Pool下的size改为2,会出现两组,组名可以自己取,
6.1、将leaphand下面的Capsule Hand Left和Capsule Hand Right拖到第一组的Left /Right Model,
6.2、将leaphand下面的RigidRoundHand_L和RigidRoundHand_R拖到第二组的Left /Right Model,
6.3、每组的 Is Enable和Can Duplicate 都勾选上,


7,打开Leap Motion Contral Panel,运行游戏,就可以看见小手手了
参考:https://blog.csdn.net/LYROOO/article/details/70667558
页: [1]
查看完整版本: leapmotion 导入 unity 3D 教程