O'Reilly logo

Mastering Leap Motion by Brandon Sanders

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Putting everything together and testing it

Go ahead and open your Unity Editor and load up our project. With the Player and HandController scripts completed, we can go ahead and attach them to their respective GameObjects now:

  • Attach the Player script to our PlayerArrow GameObject
  • Attach the HandController script to our Core GameObject

At this point, you should be quite familiar with how attaching scripts to GameObjects works. As a refresher, simply dragging the desired script onto the target GameObject will do the trick. Fortunately, no configuration is required this time around.

With the scripts attached, we need to perform a few last pieces of configuration to make sure everything works. The first thing we'll be doing is attaching the main camera ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required