Class MagicLeapInputExtensions
Input extensions for Magic Leap
Inherited Members
Namespace: UnityEngine.XR.MagicLeap
Syntax
public static class MagicLeapInputExtensions
Methods
IsControllerApiEnabled(XRInputSubsystem)
Is the controller API being active
Declaration
public static bool IsControllerApiEnabled(this XRInputSubsystem self)
Parameters
Type | Name | Description |
---|---|---|
XRInputSubsystem | self | unused |
Returns
Type | Description |
---|---|
Boolean | true if the controller is active |
IsEyeTrackingApiEnabled(XRInputSubsystem)
Is the Eye Tracking API enabled/
Declaration
public static bool IsEyeTrackingApiEnabled(this XRInputSubsystem self)
Parameters
Type | Name | Description |
---|---|---|
XRInputSubsystem | self | unused |
Returns
Type | Description |
---|---|
Boolean | true if the eye tracker is active. |
SetControllerApiEnabled(XRInputSubsystem, Boolean)
Enable/disable the Controller API
Declaration
public static void SetControllerApiEnabled(this XRInputSubsystem self, bool enabled)
Parameters
Type | Name | Description |
---|---|---|
XRInputSubsystem | self | unused |
Boolean | enabled | true to enable, false to disable |
SetEyeTrackingApiEnabled(XRInputSubsystem, Boolean)
Enable/disable the Eye Tracking API
Declaration
public static void SetEyeTrackingApiEnabled(this XRInputSubsystem self, bool enabled)
Parameters
Type | Name | Description |
---|---|---|
XRInputSubsystem | self | unused |
Boolean | enabled | true to enable, false to disable |