This demonstrates how you might add some novelty to your menu.
Move the character over a button to hover click it. Move the character using the arrow keys and space bar to jump. This scene uses a 2D game character as a pointer. This scene demonstrates that any Transform may be used as a pointer. It can click by hovering or pressing space bar. This scene uses a spinning 3D cube as a pointer. Its purpose is to show that an unmodified UI may be used with a variety of pointers that Custom Pointer supports. You can use your mouse or keyboard to interact with it. The following scenes demonstrate what Custom Pointer can do for you. I believe this issue will be fixed by Leap Motion in subsequent releases of their software. If you remove your hand from the sensor, and put it back in, it will work. This often leads to the first time the hand is shown, it won’t have a working pointer. There does appear to be an issue that can be seen in “Custom Pointer Leap Motion Orion Demo.” RegisterHandTransition is not always called faithfully so far as I can tell. Custom Pointer supports Leap Motion Orion v4.0.2.
Leap Motion Orion is still in beta and is changing rapidly. Scenes using Unity’s 4.6+ UI will allow a Leap Motion hand to click using hover click, screen tap, or key tap without any changes to the UI.Ĭlicking works! #leapmotion #unit圓d 4.6 #gamedev - Shane Celis JanuNote In addition to allowing any Transform to become a pointer, this asset includes classes that work specifically with the Leap Motion, both Core Assets and the new Orion Beta v4.0.2.
Although you can make your custom pointer click by whatever means you like, hover-click is a built-in feature that shows a progress bar that indicates time-till-click, similar to those found in Kinect games, and the hover-drag feature works similarly. This works with 3D Transforms and Rect Transforms by using their screen position. The Custom Pointer asset allows one to turn any Transform or Leap Motion finger into a pointer that can interact with the UI. Custom Pointer is available on the Unity Asset Store.