您的位置:首页 > 移动开发 > Unity3D

【VR】Leap Motion 官网文档(一)Unity资源与插件

2015-11-03 12:00 633 查看


Leap Motion Unity Assets and Plugin

原文地址:https://developer.leapmotion.com/documentation/unity/index.html

The Leap Motion Unity assets provide an easy way to get motion-controlled hands into a Unity game.

Leap Motion 的Unity 资源让Unity游戏获取控制运动的手模型变得非常方便。




System Requirements(系统要求)

Leap Motion 2.3.1+ (Leap Motion 2.3.1以上版本)
Unity 5.1+ (Unity 5.1以上版本)
Windows 7, Windows 8, Mac OS X




Installation(安装步骤)

Download the latest asset package from: https://developer.leapmotion.com/downloads/unity
                                                                               (下载最新的资源包从 https://developer.leapmotion.com/downloads/unity

Open or create a project.  
                                                                                                   
                                                                                           (打开或者创建一个Unity工程)

Select the Unity Assets > Import Package > Custom Package menu command.      
                                                                           
                   (在Unity中导入该资源包,也可双击导入)

Locate the downloaded asset package and click Open.

The assets are imported into your project.                                         
                                                                             
                                            在本地找到下载的资源包点击Open导入Unity'中

Every development and client computer must also install the Leap Motion service software (which runs automatically after it is installed).                

(所有的开发者和客户端的电脑都必须安装Leap Motion的服务软件【注:安装后自动运行】)


Troubleshooting(故障排除)

If you do not see hands after adding the HandController prefab to a scene and pressing play, check the following:

(如果你已经把HandController预制体拖到了Scene场景中并且运行之后看不到手的模型,请查看以下几条:)
The hands are within the scene camera’s field of view, not obscured by another 3D object, and are large enough to be visible. The 3D hands appear above the location of the HandController
prefab.                                 
                           
   
                           
  
              

(这个手的模型需要放在Unity的Scene场景摄像机的视野范围之内,并且不能被其他3D物体遮挡,并且需要保证它的大小是足以可以被看见的,3D的手部模型将出现在HandController预制体所放置的位置上)
Pause the game and check to see if the hand models are in the Unity editor hierarchy view. If, so, find them in the editor scene view.
(暂停游戏并且检查这个手部的模型是否在Unity的Hierarchy面板中,如果在,在编辑场景中找到它)
Make sure that the Unity Editor (or app if running outside the editor) has the OS input focus. (The Leap Motion Service only sends data to the active application.) 
                         
                            
                         
                            
                         
                            
                  

(请确保你的Unity编辑窗口或者正在运行的应用程序窗口在当前的操作系统中是有输入焦点的【注:Leap Motion的服务软件只向激活状态的应用程序发送数据】)
Check that the Leap Motion icon in the task bar is green. If it has gone dark, the service isn’t sending out data. In this case, double check that the Leap Motion hardware is plugged
in and check that the service is running.                    
               
                  
(检查任务栏中的Leap Motion 图标是否是绿色状态。如果颜色变暗,服务将不会发送数据。在这种情况下,双击图标确认Leap
Motion硬件是否被插入,服务是否在运行中)
Open the Leap Motion Visualizer from the task bar icon menu. If you see hands in the Visualizer, the problem is most likely within the Unity plugin, scripts, or your own application.
If there are no hands in the Visualizer, the problem is outside Unity.                  
(点击任务栏图标,打开Leap Motion 观察器。如果在观察器重能够看到手模型,说明问题很可能出现在Unity插件,脚本以及Unity应用程序里。如果观察器中没有看到说,则说明不是Unity方面的问题)
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: