LeapMotionDeviceManagerProfile Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
The profile for the Leap Motion Device Manager. The settings for this profile can be viewed if the Leap Motion Device Manager input data provider is added to the MRTK input configuration profile.
public ref class LeapMotionDeviceManagerProfile : Microsoft::MixedReality::Toolkit::BaseMixedRealityProfile
[Microsoft.MixedReality.Toolkit.MixedRealityServiceProfile(typeof(Microsoft.MixedReality.Toolkit.LeapMotion.Input.LeapMotionDeviceManager), null)]
[UnityEngine.CreateAssetMenu(fileName="LeapMotionDeviceManagerProfile", menuName="Mixed Reality Toolkit/Profiles/Mixed Reality Leap Motion Profile", order=4)]
public class LeapMotionDeviceManagerProfile : Microsoft.MixedReality.Toolkit.BaseMixedRealityProfile
[Microsoft.MixedReality.Toolkit.MixedRealityServiceProfile(typeof(Microsoft.MixedReality.Toolkit.LeapMotion.Input.LeapMotionDeviceManager), null)]
[UnityEngine.CreateAssetMenu(fileName="LeapMotionDeviceManagerProfile", menuName="Mixed Reality/Toolkit/Profiles/Mixed Reality Leap Motion Profile", order=4)]
public class LeapMotionDeviceManagerProfile : Microsoft.MixedReality.Toolkit.BaseMixedRealityProfile
[<Microsoft.MixedReality.Toolkit.MixedRealityServiceProfile(typeof(Microsoft.MixedReality.Toolkit.LeapMotion.Input.LeapMotionDeviceManager), null)>]
[<UnityEngine.CreateAssetMenu(fileName="LeapMotionDeviceManagerProfile", menuName="Mixed Reality Toolkit/Profiles/Mixed Reality Leap Motion Profile", order=4)>]
type LeapMotionDeviceManagerProfile = class
inherit BaseMixedRealityProfile
[<Microsoft.MixedReality.Toolkit.MixedRealityServiceProfile(typeof(Microsoft.MixedReality.Toolkit.LeapMotion.Input.LeapMotionDeviceManager), null)>]
[<UnityEngine.CreateAssetMenu(fileName="LeapMotionDeviceManagerProfile", menuName="Mixed Reality/Toolkit/Profiles/Mixed Reality Leap Motion Profile", order=4)>]
type LeapMotionDeviceManagerProfile = class
inherit BaseMixedRealityProfile
Public Class LeapMotionDeviceManagerProfile
Inherits BaseMixedRealityProfile
- Inheritance
- Attributes
-
MixedRealityServiceProfileAttribute UnityEngine.CreateAssetMenuAttribute
Constructors
LeapMotionDeviceManagerProfile() |
Properties
EnterPinchDistance |
The distance between the index finger tip and the thumb tip required to enter the pinch/air tap selection gesture. The pinch gesture enter will be registered for all values less than the EnterPinchDistance. The default EnterPinchDistance value is 0.02 and must be between 0.015 and 0.1. |
ExitPinchDistance |
The minimum distance between the index finger tip and the thumb tip required to exit the pinch/air tap gesture to deselect. The distance between the thumb and the index tip must be greater than the ExitPinchDistance to raise the OnInputUp event |
LeapControllerOffset |
Adds an offset to the game object with LeapServiceProvider attached. This offset is only applied if the leapControllerOrientation is LeapControllerOrientation.Desk and is necessary for the hand to appear in front of the main camera. If the leap controller is on the desk, the LeapServiceProvider is added to the scene instead of the LeapXRServiceProvider. The anchor point for the hands is the position of the game object with the LeapServiceProvider attached. |
LeapControllerOrientation |
The location of the leap motion controller. LeapControllerOrientation.Headset indicates the controller is mounted on a headset. LeapControllerOrientation.Desk indicates the controller is placed flat on desk. The default value is set to LeapControllerOrientation.Headset. |
LeapVRDeviceOffsetMode |
The VR offset mode determines the calculation method for Leap Motion Controller placement while in VR. LeapVRDeviceOffsetModes: Default - No offset is applied to the controller. Manual Head Offset - Three new properties with a range constraint control the offset, LeapVRDeviceOffsetY, LeapVRDeviceOffsetZ and LeapVRDeviceOffsetTiltX. Transform - The new Leap Controller origin is set to a different transform. The LeapVRDeviceOffsetMode property is only taken into account if the LeapControllerOrientation is Headset. |
LeapVRDeviceOffsetTiltX |
The X-axis tilt offset of the Leap Motion Controller if the LeapVRDeviceOffsetMode is Manual Head Offset and the LeapControllerOrientation is Headset. This property and the range constraints mirror the range specified in the LeapXRServiceProvider. |
LeapVRDeviceOffsetY |
The Y-axis offset of the Leap Motion controller if the LeapVRDeviceOffsetMode is Manual Head Offset and the LeapControllerOrientation is Headset. This property and the range constraints mirror the range specified in the LeapXRServiceProvider. |
LeapVRDeviceOffsetZ |
The Z-axis offset of the Leap Motion controller if the LeapVRDeviceOffsetMode is Manual Head Offset and the LeapControllerOrientation is Headset. This property and the range constraints mirror the range specified in the LeapXRServiceProvider. |
LeapVRDeviceOrigin |
The origin the Leap Motion Controller if the LeapVRDeviceOffsetMode is Transform and the LeapControllerOrientation is Headset. |