找回密码
 立即注册
查看: 467|回复: 0

leapmotion 导入 unity 3D 教程

[复制链接]
发表于 2021-12-12 12:13 | 显示全部楼层 |阅读模式
软件版本:
                 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

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

×
懒得打字嘛,点击右侧快捷回复 【右侧内容,后台自定义】
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|手机版|Unity开发者联盟 ( 粤ICP备20003399号 )

GMT+8, 2025-5-14 22:24 , Processed in 0.137299 second(s), 26 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2025 Discuz! Team.

快速回复 返回顶部 返回列表