DisconnectionNoticeΒΆ
Displays a notice if the Leap Motion device is not plugged in or the service is not running.
Attach this script to the game object containing a GUI Texture with the image to display. The asset package Textures folder contains example graphics for both peripheral and embedded Leap Motion controllers.
Tracks the connection state of the Leap Motion hardware.
If the device is unplugged or otherwise not detected, the script fades in a GUITexture object which should communicate the problem to the user.
Public MembersTexture2D embeddedReplacementImage
An alternative image to use when the hardware is embedded in a keyboard or laptop.
AnimationCurve fade
The easing curve.
float fadeInTime
The speed to fade the object alpha from 0 to 1.
float fadeOutTime
The speed to fade the object alpha from 1 to 0.
Color onColor
The fully on texture tint color.
int waitFrames
A delay before beginning the fade-in effect.