Skip to main content
Version: 12 Dec 2024

MagicLeapProvider

Inherits from:
Provider

Public Methods

override void Destroy

public override void Destroy()

AnchorConfidence GetAnchorConfidence

public AnchorConfidence GetAnchorConfidence(
TrackableId xrAnchorId
)

Parameters

TypeNameDescription
TrackableIdxrAnchorId

ulong GetAnchorId

public ulong GetAnchorId(
TrackableId xrAnchorId
)

Parameters

TypeNameDescription
TrackableIdxrAnchorId

string GetAnchorMapPositionId

public string GetAnchorMapPositionId(
TrackableId xrAnchorId
)

Parameters

TypeNameDescription
TrackableIdxrAnchorId

Pose GetAnchorPose

public Pose GetAnchorPose(
TrackableId xrAnchorId
)

Parameters

TypeNameDescription
TrackableIdxrAnchorId

Pose GetAnchorPoseFromID

public Pose GetAnchorPoseFromID(
ulong anchorId
)

Parameters

TypeNameDescription
ulonganchorId

override unsafe TrackableChanges< XRAnchor > GetChanges

public override unsafe TrackableChanges< XRAnchor > GetChanges(
XRAnchor defaultAnchor,
Allocator allocator
)

Parameters

TypeNameDescription
XRAnchordefaultAnchor
Allocatorallocator

TrackableId GetTrackableIdFromMapPositionId

public TrackableId GetTrackableIdFromMapPositionId(
string mapPositionId
)

Parameters

TypeNameDescription
stringmapPositionId

bool IsStoredAnchor

public bool IsStoredAnchor(
TrackableId xrAnchorId
)

Parameters

TypeNameDescription
TrackableIdxrAnchorId

MagicLeapProvider

public MagicLeapProvider()

override void Start

public override void Start()

override void Stop

public override void Stop()

override unsafe bool TryAddAnchor

public override unsafe bool TryAddAnchor(
Pose pose,
out XRAnchor xrAnchor
)

Parameters

TypeNameDescription
Posepose
out XRAnchorxrAnchor

override bool TryRemoveAnchor

public override bool TryRemoveAnchor(
TrackableId trackableId
)

Parameters

TypeNameDescription
TrackableIdtrackableId