2014/5/26

解決 Leap Motion範例 在Windows上的Unity無法正常執行的問題


本篇解法參考自 Getting the Leap to work with Unity (Free Version not Pro) ,
如果有遇到“License error – plugins are only supported in Unity Pro”這個錯誤訊息的人,請直接點選上面文章的連結。

這篇主要想解決的情況是,Scene可以正常開啟,且可以執行;但執行後無法用Leap Motion操作,且會出現以下error:















環境 :
Windows 8 (x64), Unity 4 (4.3.4f1), Leap Motion SDK(1.0.9+8391, 2014/5/26下載)

-----------------------------------------------------------------------------
Step1:
SDK下載後,找到此路徑底下(ex:  D:\LeapDeveloperKit\LeapSDK\lib\UnityAssets\Plugins)的三個檔案。







step 2:
將Unity專案中Assets\Plugins裡面的Leap.dll, LeapCSharp.dll刪除,只留下LeapCSharp.NET3.5.dll。













step 3:
去"step1找到的資料夾"複製裡面的Leap.dll, LeapCSharp.dll檔案,把它們貼到存放目前正在執行的Unity專案的"根資料夾"中。
























step 4:
在回到Unity中執行此專案,就可以順利用Leap Motion操控,且不會出現error了。 :)