docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class MagicLeapController

    Inheritance
    object
    InputControl
    InputDevice
    TrackedDevice
    XRController
    MagicLeapController
    Inherited Members
    XRController.leftHand
    XRController.rightHand
    TrackedDevice.trackingState
    TrackedDevice.isTracked
    TrackedDevice.devicePosition
    TrackedDevice.deviceRotation
    InputDevice.InvalidDeviceId
    InputDevice.ReadValueFromBufferAsObject(void*, int)
    InputDevice.ReadValueFromStateAsObject(void*)
    InputDevice.ReadValueFromStateIntoBuffer(void*, void*, int)
    InputDevice.CompareValue(void*, void*)
    InputDevice.MakeCurrent()
    InputDevice.OnAdded()
    InputDevice.OnRemoved()
    InputDevice.OnConfigurationChanged()
    InputDevice.ExecuteCommand<TCommand>(ref TCommand)
    InputDevice.ExecuteCommand(InputDeviceCommand*)
    InputDevice.description
    InputDevice.enabled
    InputDevice.canRunInBackground
    InputDevice.added
    InputDevice.remote
    InputDevice.native
    InputDevice.updateBeforeRender
    InputDevice.deviceId
    InputDevice.lastUpdateTime
    InputDevice.wasUpdatedThisFrame
    InputDevice.allControls
    InputDevice.valueType
    InputDevice.valueSizeInBytes
    InputDevice.all
    InputControl.m_StateBlock
    InputControl.ToString()
    InputControl.EvaluateMagnitude()
    InputControl.EvaluateMagnitude(void*)
    InputControl.WriteValueFromBufferIntoState(void*, int, void*)
    InputControl.WriteValueFromObjectIntoState(object, void*)
    InputControl.TryGetChildControl(string)
    InputControl.TryGetChildControl<TControl>(string)
    InputControl.GetChildControl(string)
    InputControl.GetChildControl<TControl>(string)
    InputControl.RefreshConfigurationIfNeeded()
    InputControl.RefreshConfiguration()
    InputControl.CalculateOptimizedControlDataType()
    InputControl.ApplyParameterChanges()
    InputControl.name
    InputControl.displayName
    InputControl.shortDisplayName
    InputControl.path
    InputControl.layout
    InputControl.variants
    InputControl.device
    InputControl.parent
    InputControl.children
    InputControl.usages
    InputControl.aliases
    InputControl.stateBlock
    InputControl.noisy
    InputControl.synthetic
    InputControl.this[string]
    InputControl.magnitude
    InputControl.currentStatePtr
    InputControl.previousFrameStatePtr
    InputControl.defaultStatePtr
    InputControl.noiseMaskPtr
    InputControl.stateOffsetRelativeToDeviceRoot
    InputControl.optimizedControlDataType
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    Namespace: UnityEngine.XR.MagicLeap
    Assembly: UnityEngine.XR.MagicLeap.dll
    Syntax
    [Preserve]
    [InputControlLayout(displayName = "MagicLeap Controller")]
    public class MagicLeapController : XRController

    Properties

    bumper

    Declaration
    [Preserve]
    [InputControl(displayName = "Bumper Axis")]
    public AxisControl bumper { get; }
    Property Value
    Type Description
    AxisControl

    bumperButton

    Declaration
    [Preserve]
    [InputControl(displayName = "Bumper Button")]
    public ButtonControl bumperButton { get; }
    Property Value
    Type Description
    ButtonControl

    calibrationAccuracy

    Declaration
    [Preserve]
    [InputControl(displayName = "Calibration Accuracy")]
    public IntegerControl calibrationAccuracy { get; }
    Property Value
    Type Description
    IntegerControl

    dof

    Declaration
    [Preserve]
    [InputControl(displayName = "Degrees of Freedom")]
    public IntegerControl dof { get; }
    Property Value
    Type Description
    IntegerControl

    menu

    Declaration
    [Preserve]
    [InputControl(displayName = "Menu")]
    public ButtonControl menu { get; }
    Property Value
    Type Description
    ButtonControl

    touchpad1Force

    Declaration
    [Preserve]
    [InputControl(displayName = "Touchpad 1 Force")]
    public AxisControl touchpad1Force { get; }
    Property Value
    Type Description
    AxisControl

    touchpad1Position

    Declaration
    [Preserve]
    [InputControl(displayName = "Touchpad 1 Position")]
    public Vector2Control touchpad1Position { get; }
    Property Value
    Type Description
    Vector2Control

    touchpad1Pressed

    Declaration
    [Preserve]
    [InputControl(displayName = "Touchpad 1 Pressed")]
    public ButtonControl touchpad1Pressed { get; }
    Property Value
    Type Description
    ButtonControl

    touchpad2Force

    Declaration
    [Preserve]
    [InputControl(displayName = "Touchpad 2 Force")]
    [Obsolete("This feature is no longer available as Magic Leap does not support Secondary Touch.")]
    public AxisControl touchpad2Force { get; }
    Property Value
    Type Description
    AxisControl

    touchpad2Position

    Declaration
    [Preserve]
    [InputControl(displayName = "Touchpad 2 Position")]
    [Obsolete("This feature is no longer available as Magic Leap does not support Secondary Touch.")]
    public Vector2Control touchpad2Position { get; }
    Property Value
    Type Description
    Vector2Control

    touchpad2Pressed

    Declaration
    [Preserve]
    [InputControl(displayName = "Touchpad 2 Pressed")]
    [Obsolete("This feature is no longer available as Magic Leap does not support Secondary Touch.")]
    public ButtonControl touchpad2Pressed { get; }
    Property Value
    Type Description
    ButtonControl

    trigger

    Declaration
    [Preserve]
    [InputControl(displayName = "Trigger Axis")]
    public AxisControl trigger { get; }
    Property Value
    Type Description
    AxisControl

    triggerButton

    Declaration
    [Preserve]
    [InputControl(displayName = "Trigger Button")]
    public ButtonControl triggerButton { get; }
    Property Value
    Type Description
    ButtonControl

    type

    Declaration
    [Preserve]
    [InputControl(displayName = "Input Control Type")]
    public IntegerControl type { get; }
    Property Value
    Type Description
    IntegerControl

    Methods

    FinishSetup()

    Declaration
    protected override void FinishSetup()
    Overrides
    XRController.FinishSetup()

    StartLEDEffect(LEDEffect, LEDSpeed, LEDPattern, LEDColor, uint)

    Declaration
    public bool StartLEDEffect(LEDEffect ledEffect, LEDSpeed ledSpeed, LEDPattern ledPattern, LEDColor ledColor, uint durationMs)
    Parameters
    Type Name Description
    LEDEffect ledEffect
    LEDSpeed ledSpeed
    LEDPattern ledPattern
    LEDColor ledColor
    uint durationMs
    Returns
    Type Description
    bool

    StartLEDPattern(LEDPattern, LEDColor, uint)

    Declaration
    public bool StartLEDPattern(LEDPattern ledPattern, LEDColor ledColor, uint durationMs)
    Parameters
    Type Name Description
    LEDPattern ledPattern
    LEDColor ledColor
    uint durationMs
    Returns
    Type Description
    bool

    StartVibe(VibePattern, VibeIntensity)

    Declaration
    public bool StartVibe(VibePattern pattern, VibeIntensity vibeIntensity)
    Parameters
    Type Name Description
    VibePattern pattern
    VibeIntensity vibeIntensity
    Returns
    Type Description
    bool
    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)