Tanoda
Leap.Unity.ConnectionMonitor Class Reference
Inheritance diagram for Leap.Unity.ConnectionMonitor:

Public Attributes

LeapServiceProvider provider
 
float fadeInTime = 1.0f
 
float fadeOutTime = 1.0f
 
AnimationCurve fadeCurve = AnimationCurve.EaseInOut(0.0f, 0.0f, 1.0f, 1.0f)
 
int monitorInterval = 2
 
Color onColor = Color.white
 
float distanceToCamera = 12.0f
 

Detailed Description

The ConnectionMonitor class monitors the connection to the Leap Motion service and displays a sprite in front of the camera when a connection is not available. You can use the PluginLeapNotice sprites in the LeapMotion/Textures folder or create your own.

Definition at line 21 of file ConnectionMonitor.cs.

Member Data Documentation

◆ distanceToCamera

float Leap.Unity.ConnectionMonitor.distanceToCamera = 12.0f

The distance of the notification sprite from the camera in world units.

Definition at line 44 of file ConnectionMonitor.cs.

◆ fadeCurve

AnimationCurve Leap.Unity.ConnectionMonitor.fadeCurve = AnimationCurve.EaseInOut(0.0f, 0.0f, 1.0f, 1.0f)

The easing curve.

Definition at line 35 of file ConnectionMonitor.cs.

◆ fadeInTime

float Leap.Unity.ConnectionMonitor.fadeInTime = 1.0f

The speed to fade the sprite alpha from 0 to 1.

Definition at line 28 of file ConnectionMonitor.cs.

◆ fadeOutTime

float Leap.Unity.ConnectionMonitor.fadeOutTime = 1.0f

The speed to fade the sprite alpha from 1 to 0.

Definition at line 32 of file ConnectionMonitor.cs.

◆ monitorInterval

int Leap.Unity.ConnectionMonitor.monitorInterval = 2

How often to check the connection.

Definition at line 38 of file ConnectionMonitor.cs.

◆ onColor

Color Leap.Unity.ConnectionMonitor.onColor = Color.white

The fully on texture tint color.

Definition at line 41 of file ConnectionMonitor.cs.

◆ provider

LeapServiceProvider Leap.Unity.ConnectionMonitor.provider

The LeapServiceProvider in the scene.

Definition at line 24 of file ConnectionMonitor.cs.


The documentation for this class was generated from the following file: