MagicLeapProvider
Inherits from:
Provider
Public Fields
imageLibrary
The current RuntimeReferenceImageLibrary . If null then the subsystem will be set to "off".
public override RuntimeReferenceImageLibrary imageLibrary { get; set; }
requestedMaxNumberOfMovingImages
Stores the requested maximum number of concurrently tracked moving images.
public override int requestedMaxNumberOfMovingImages { get; set; }
Details*
Magic Leap Image Tracking has the ability to set an enforcement policy on the maximum number of tracked moving images. If the policy has been explicitly set to false by using ImageTrackingSubsystem.SetAutomaticImageStationarySettingsEnforcementPolicy then this value will not be honored by the native provider until the policy is set to true .
Public Methods
override RuntimeReferenceImageLibrary CreateRuntimeLibrary
Creates a RuntimeReferenceImageLibrary from the passed in XRReferenceImageLibrary passed in.
public override RuntimeReferenceImageLibrary CreateRuntimeLibrary(
XRReferenceImageLibrary serializedLibrary
)
Parameters
Type | Name | Description |
---|---|---|
XRReferenceImageLibrary | serializedLibrary | The XRReferenceImageLibrary that is used to create the RuntimeReferenceImageLibrary |
Returns: A new RuntimeReferenceImageLibrary created from the old
override void Destroy
Destroy the image tracking subsystem.
public override void Destroy()
unsafe override TrackableChanges< XRTrackedImage > GetChanges
public unsafe override TrackableChanges< XRTrackedImage > GetChanges(
XRTrackedImage defaultTrackedImage,
Allocator allocator
)
Parameters
Type | Name | Description |
---|---|---|
XRTrackedImage | defaultTrackedImage | |
Allocator | allocator |
MagicLeapProvider
public MagicLeapProvider()
bool RequestPermissionIfNecessary
Allows the user to re-request privileges
public bool RequestPermissionIfNecessary()
Returns: true if the Color Camera privileges were granted and false otherwise.
Public Attributes
currentMaxNumberOfMovingImages
Stores the current maximum number of moving images that can be tracked by the native platform.
public override int currentMaxNumberOfMovingImages => m_RequestedNumberOfMovingImages;
Details*
Magic Leap Image Tracking has the ability to set an enforcement policy on the maximum number of tracked moving images. If the policy has been explicitly set to false by using ImageTrackingSubsystem.SetAutomaticImageStationarySettingsEnforcementPolicy then this value will indicate the current number of explicitly declared moving images in the current library otherwise it will return the same value as requestedMaxNumberOfMovingImages.