Supported OpenXR Features for Unreal Engine
These Magic Leap 2 features are supported for Unreal Engine 5.3 with Magic Leap 2 SDK for Unreal Engine 5 (Magic Leap Unreal SDK).
Most supported features are supported through the OpenXR API, which is included in the Magic Leap 2 OS. Some support features require you to install the Magic Leap Native API SDK (Magic Leap 2 C SDK), also known as Magic Leap native C API. Other supported features are supported through the Android dependencies required for Unreal Engine or are built in to Unreal Engine.
Input
Input features supported:
Magic Leaps 2 Controller and Palm Pose. Supported through OpenXR extensions XR_ML_ml2_controller_interaction and XR_EXT_palm_pose.
Haptics. The native Unreal Engine haptics interface is supported. Custom haptic patterns are supported when the Magic Leap 2 C SDK is installed.
Hand tracking. Hand-tracking keypoints are supported through OpenXR extension XR_EXT_hand_tracking. Gesture detection is supported through OpenXR extension XR_EXT_hand_interaction.
Eye tracking. Gaze recognition is supported through OpenXR.
Microphone. Supported through the Android dependencies required for Unreal Engine.
Voice commands. Supported when the Magic Leap 2 C SDK is installed.
Perception
Supported perception features:
Space management. Supported through the OpenXR extension XR_ML_localization_map. The XR_ML_localization_map extension has not yet been approved for the OpenXR Specification and is considered experimental.
LOCAL_FLOOR, VIEW, FLOOR are the supported reference spaces. LOCAL_FLOOR sets origin for all content. Choose this at design time. It can't be changed at runtime. Reference spaces are configured in your Unreal Engine project settings.
Environment understanding
Supported environmental understanding features:
Plane detection is supported through OpenXR extension XR_EXT_plane_detection.
Marker tracking is supported through the OpenXR extension XR_ML_marker_understanding.
The Magic Leap 2 SDK for Unreal Engine 5 includes examples for plane detection and marker tracking.
Cameras
The Magic Leap 2 RGB camera, world cameras, depth cameras, and eye cameras are supported when the Magic Leap 2 C SDK is installed.
The RGB camera does not support mixed reality rendering.
Audio
Spatial audio is supported. See the Soundfield audio plugin for Unreal Engine.
Rendering
Supported rendering features:
Global dimmer control. Supported through OpenXR extension XR_ML_global_dimmer.
Focus distance. Supported through OpenXR extension XR_ML_frame_end_info.
Vignette. Supported through OpenXR extension XR_ML_frame_end_info.
Content protection. Supported through OpenXR extension XR_ML_frame_end_info.
Near clipping plane. Support is built in to Unreal Engine. Additional functionality is supported through OpenXR. Minimum near clipping plane distance is 25 centimeters. For more information, see Display Zone and Clipping Plane.
Vulkan. Support is built in to Unreal Engine.
Multimedia
Hardware media codecs are supported through Unreal Engine's built-in media player and the Android dependencies required for Unreal Engine.
Software media codecs, media playback, and DRM are supported through the Android dependencies required for Unreal Engine.
Web
Web View is supported through the Web View widget. Performance might be slow for larger or more complex web pages.
Operating systems services
Supported Magic Leap 2 OS services:
System notifications. Allows applications to disable notifications for medical devices. Supported through OpenXR extension XR_ML_system_notifications. This extension has not yet been approved for the OpenXR Specification and is considered experimental.
User calibration. This is eye calibration and headset fit. Supported through OpenXR extension XR_ML_user_calibration.