Skip to main content
Version: 20 Mar 2024

MagicLeap

NameSpace: XR

Namespaces

Name
UnityEngine::XR::MagicLeap::LowLevel
UnityEngine::XR::MagicLeap::Native
UnityEngine::XR::MagicLeap::Unsafe

Classes

TypeName
classAnchorSubsystem
The Magic Leap implementation of the XRAnchorSubsystem . Do not create this directly. Use XRAnchorSubsystemDescriptor.Create() instead.
classGestureSubsystem
MagicLeap implementation of the XRGestureSubsystem . Do not create this directly. Use the SubsystemManager instead.
classGestureSubsystemComponent
interfaceIMLMediaPlayer
Interface for target classes used by MLMediaPlayer Each function must be implemented by the child player type
interfaceIMLRequest
ALWAYS INHERIT FROM THIS
classImageTrackingSubsystem
Subsystem for Image Tracking TODO: Implement when Image Tracking is available from the platform
classInputSubsystem
classInvalidInstanceException
Simple custom exception for instance error checking.
classMLAPIBase
classMLAnchors
Spatial Anchor management is closely tied to the selected mapping mode on the device. The modes are mutually exclusive and affect the functionality of these APIs. The available mapping modes are:
classMLAudioInput
Manages Audio.
classMLAudioOutput
Manages Audio.
classMLAudioOutputPluginBehavior
classMLAudioPlayback
classMLAutoAPISingleton
MLAutoAPISingleton class contains a template for singleton APIs
classMLBitMask
Custom attribute to make it easy to turn enum fields into bit masks in the inspector. The enum type must be defined in order for the inspector to be able to know what the bits should be set to.
classMLBitMaskEditor
classMLCVCamera
MLCamera class exposes static functions to query camera related functions. Most functions are currently a direct pass through functions to the native C-API functions and incur no overhead.
classMLCamera
Provides a multithreadig implementation of the camera api. Handles pause behavior automatically.
classMLCameraBase
MLCamera class exposes static functions to query camera related functions. Most functions are currently a direct pass through functions to the native C-API functions and incur no overhead.
classMLDepthCamera
APIs to access the depth camera data.
classMLDevice
MagicLeap device class responsible for updating all trackers when they register and are enabled.
classMLEyeCalibration
MLEyeCalibration Summary placeholder.
classMLEyeCamera
MLEyeCamera class exposes static functions to query eye camera related functions. Most functions are currently a direct pass through functions to the native C-API functions and incur no overhead.
classMLFacialExpression
classMLGazeRecognition
This API can be used to get info about gaze.
classMLGlobalDimmer
classMLGraphicsHooks
classMLHandTracking
classMLHeadposeCanvasBehavior
Script used to position this Canvas object directly in front of the user by using lerp functionality to give it a smooth look. Components on the canvas should function normally.
classMLHeadsetFit
MLHeadsetFit Summary placeholder.
classMLLazySingleton
classMLMarkerTracker
This API can be used to scan markers. For QR codes it also provides 6DOF poses. The scanner supports up to 16 markers. Identical markers will be treated as seperate markers and reported individually. List of currently supported trackable markers (with pose info):
classMLMedia
MLMedia APIs.
classMLMediaFormat
APIs for creating and retrieving media format information.
classMLMediaFormatKey
MLMediaFormat description goes here.
classMLMediaPlayer
Performance markers for MLMediaPlayer.
classMLMediaRecorder
APIs for video and audio recording.
classMLMediaTTML
MLMediaTTML Summary placeholder.
classMLMeshing
Performance markers for MLMeshing.
classMLNativeSurface
classMLNativeSurfaceYcbcrRenderer
classMLNotifications
MLHeadsetFit description goes here.
classMLOcclusion
structMLPermission
classMLPermissions
classMLPlanes
classMLPlanesQueryFlagsAndPlaneDetectionModeExtensions
classMLPluginLog
Used to print logs within the plugin.
classMLPowerManager
classMLRequest
INHERIT FROM THIS IF YOUR REQUEST SHOULD BE A CLASS
structMLResult
Magic Leap API return value.
classMLSegmentedDimmer
classMLSpace
classMLTime
Represents an ML API wide timestamp in nanoseconds that is not guaranteed to be synced with any system time. If OpenXR is used, MLTime is synonymous with the XrTime type.
classMLVirtualKeyboard
This class provides callbacks and manages the state of the Virtual Keyboard.
classMLVoice
APIs for the voice service system.
classMLWebRTC
MLWebRTC class contains the API to interface with the WebRTC C API.
classMLWebView
API for MLWebView that allows an application to instantiate a hardware accelerated WebView and interact with it(via "mouse" and "keyboard" events).
classMLWorldCamera
Magic Leap 2 has three world cameras which it uses for environment tracking. The three cameras area located on the left, center, and right side of the headset. This API will provide a way to query for the frames from these world cameras, at this point the app will not be able to configure the world camera parameters.
classMagicLeapCamera
MonoBehaviour class representing the Magic Leap camera
classMagicLeapXrProvider
classMagicLeapXrProviderNativeBindings
classMagicLeapXrProviderSettings
classMeshingSubsystem
classMeshingSubsystemComponent
classMeshingSubsystemLifecycle
classOnChangedCallAttribute
classPlanesSubsystem
The Magic Leap implementation of the XRPlaneSubsystem . Do not create this directly. Use PlanesSubsystemDescriptor.Create() instead.
classRequireXRLoader
Place this attribute on a child of MLAutoAPISingleton to prevent its initialization until the Magic Leap XR package is loaded.
classSessionSubsystem
The Magic Leap implementation of the XRSessionSubsystem . Do not create this directly. Use SessionSubsystemDescriptor.Create() instead.
classSettingsIntentsLauncher
classSubsystemFeatures
classTestExtensions
classTimer
classYcbcrRenderer
Implements a renderer for android native & hardware buffers (Vulkan-only).