Skip to main content
Version: 21 Aug 2024

MagicLeapProvider

Inherits from:
Provider

Public Fields

currentTrackingMode

The current tracking mode feature flag.


public override Feature currentTrackingMode { get; set; }

Details*

Magic Leap will always try to use 6DoF tracking but will automatically switch to 3DoF if it doesn't have a sufficient tracking environment. This will report which of the two modes is currently active and UnityEngine.XR.ARSubsystems.Feature.None otherwise.


requestedTrackingMode


public override Feature requestedTrackingMode { get; set; }


trackingState


public override TrackingState trackingState { get; set; }


Public Methods

override Promise< SessionAvailability > GetAvailabilityAsync

public override Promise< SessionAvailability > GetAvailabilityAsync()

override NativeArray< ConfigurationDescriptor > GetConfigurationDescriptors

public override NativeArray< ConfigurationDescriptor > GetConfigurationDescriptors(
Allocator allocator
)

Parameters

TypeNameDescription
Allocatorallocator

override void Update

public override void Update(
XRSessionUpdateParams updateParams,
Configuration configuration
)

Parameters

TypeNameDescription
XRSessionUpdateParamsupdateParams
Configurationconfiguration

TODO (5/26/2020): Move MLSpatialMapper specific features to shared XRMeshSubsystem extensions


Public Attributes

requestedFeatures


public override Feature requestedFeatures => SubsystemFeatures.requestedFeatures;