MagicLeapProvider
Inherits from:
Provider
Public Methods
override void Destroy
public override void Destroy()
AnchorConfidence GetAnchorConfidence
public AnchorConfidence GetAnchorConfidence(
TrackableId xrAnchorId
)
Parameters
Type | Name | Description |
---|---|---|
TrackableId | xrAnchorId |
ulong GetAnchorId
public ulong GetAnchorId(
TrackableId xrAnchorId
)
Parameters
Type | Name | Description |
---|---|---|
TrackableId | xrAnchorId |
string GetAnchorMapPositionId
public string GetAnchorMapPositionId(
TrackableId xrAnchorId
)
Parameters
Type | Name | Description |
---|---|---|
TrackableId | xrAnchorId |
Pose GetAnchorPose
public Pose GetAnchorPose(
TrackableId xrAnchorId
)
Parameters
Type | Name | Description |
---|---|---|
TrackableId | xrAnchorId |
Pose GetAnchorPoseFromID
public Pose GetAnchorPoseFromID(
ulong anchorId
)
Parameters
Type | Name | Description |
---|---|---|
ulong | anchorId |
override unsafe TrackableChanges< XRAnchor > GetChanges
public override unsafe TrackableChanges< XRAnchor > GetChanges(
XRAnchor defaultAnchor,
Allocator allocator
)
Parameters
Type | Name | Description |
---|---|---|
XRAnchor | defaultAnchor | |
Allocator | allocator |
TrackableId GetTrackableIdFromMapPositionId
public TrackableId GetTrackableIdFromMapPositionId(
string mapPositionId
)
Parameters
Type | Name | Description |
---|---|---|
string | mapPositionId |
bool IsStoredAnchor
public bool IsStoredAnchor(
TrackableId xrAnchorId
)
Parameters
Type | Name | Description |
---|---|---|
TrackableId | xrAnchorId |
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
Type | Name | Description |
---|---|---|
Pose | pose | |
out XRAnchor | xrAnchor |
override bool TryRemoveAnchor
public override bool TryRemoveAnchor(
TrackableId trackableId
)
Parameters
Type | Name | Description |
---|---|---|
TrackableId | trackableId |