Meshing Overview
This section details how to use Magic Leap 2's Meshing Subsystem Support feature in Unity. This feature allows applications to access a mesh that represents real-world geometry. Unity's mesh manager. Developers can use Unity's AR Mesh Manager or AR Point Cloud Manager component to visualize the mesh. Magic Leap specific settings, such as MeshingQuerySettings
, can be configured via the MagicLeapMeshingFeature
class.
using MagicLeap.OpenXR.Features.Meshing;
This feature requires the SPATIAL_MAPPING
permission to be enabled in your project's Manifest Settings. (Edit > Project Settings > Magic Leap > Manifest Settings)
This feature requires the Magic Leap 2 Meshing Subsystem Support OpenXR Feature to be enabled in your project's OpenXR Settings (Window > XR Plugin Manager > OpenXR Settings).
Learn More
📄️ API Overview
Meshing in the Magic Leap Unity Open XR SDK is controlled by the Unity ARMeshManager component or the ARPointCloudManager component depending on the render mode your application needs to use. This guide provides an overview of the Magic Leap Environmental Meshing OpenXR Feature.
📄️ Quick Start
Before adding the sample scripts to your scene, make sure to complete the following: