LoginSignup
12
13

More than 5 years have passed since last update.

無料版UnityでLeapMotionを利用する準備について

Last updated at Posted at 2015-02-28

無料版UnityでLeapMotionを利用する準備について

無料版のUnityでLeapMotionを使うときの準備に、毎回右往左往するのもあれなのでメモ。
https://developer.leapmotion.com/getting-started/unity/freeに書いてあることを参考にした。

以下手順。

1. Leap Motion V2 Skeletal Assetsのインポート

  1. Unityを起動する
  2. メニューから「Window」->「Asset Store」
  3. Asset Storeウィンドウで「leapmotion」で検索
  4. 検索結果で出てくる「Leap Motion V2 Skeletal Assets」を開いて「インポート」ボタン
  5. Importing packageウィンドウが開くので全部選択されていることを確認して「Import」ボタン
  6. ここで、Unityのメインウィンドウに戻るが、無料版の場合ウィンドウ下部に「License error. This plugin is only supported in Unity Pro!」と表示されて実行ボタンを押しても動かないことを確認する。

2. 無料版Unityに対応させる

  1. コマンドプロンプトを開く
  2. プロジェクトのルートフォルダに移動する

プロジェクトのルートフォルダの例)WS000420.JPG
3. 以下のコマンドを実行する

move Assets\Plugins\Leap.dll .
move Assets\Plugins\LeapCSharp.dll .
move Assets\Plugins\LeapCSharp.NET3.5.dll Assets
del Assets\Plugins

実行後、先ほどのプロジェクトのルートフォルダは、DLLが2つ増えてこうなる

WS000421.JPG

これで無料版UnityでLeapMotionを使う準備完了。

3. サンプル

プロジェクトビューから、

LeapMotion -> Prefabs -> HandControllerSandBox

をヒエラルキービューへD&DしてDirectional lightを追加すれば、

WS000417.JPG

こんな感じに。

WS000418.JPG

いじょ。

12
13
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
12
13