docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class MagicLeapInputExtensions

    Input extensions for Magic Leap

    Inheritance
    object
    MagicLeapInputExtensions
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: UnityEngine.XR.MagicLeap
    Assembly: UnityEngine.XR.MagicLeap.dll
    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
    bool

    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
    bool

    true if the eye tracker is active.

    SetControllerApiEnabled(XRInputSubsystem, bool)

    Enable/disable the Controller API

    Declaration
    public static void SetControllerApiEnabled(this XRInputSubsystem self, bool enabled)
    Parameters
    Type Name Description
    XRInputSubsystem self

    unused

    bool enabled

    true to enable, false to disable

    SetEyeTrackingApiEnabled(XRInputSubsystem, bool)

    Enable/disable the Eye Tracking API

    Declaration
    public static void SetEyeTrackingApiEnabled(this XRInputSubsystem self, bool enabled)
    Parameters
    Type Name Description
    XRInputSubsystem self

    unused

    bool enabled

    true to enable, false to disable

    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)