Skip to main content
API Reference NianticSpatial.NSDK.AR.VPS2

ARVps2Anchor

↳ extends UnityEngine.XR.ARFoundation.ARTrackable
Represents a Persistent Anchor tracked by an XR device.

Declaration

public sealed class ARVps2Anchor : ARTrackable<XRVps2Anchor, ARVps2Anchor>

Remarks

Persistent anchors are persistent Poses in the world that are generated by processed scans, and will be in the same real world location in future sessions. By placing virtual content relative to a Persistent Anchor, it can be restored to the same real world location in a future session.


Properties

NameTypeSummary
readonly geolocationNullable<XRGeolocation>
The geolocation of this Persistent Anchor, if available.
PredictedPosePose
The last predicted pose for this Persistent Anchor. This is used as a source of truth in
case the GameObject's pose is manipulated by interpolation or other features.
readonly TimestampMsulong
The timestamp in miliseconds corresponding to the last predicted pose for this Persistent Anchor(PredictedPose).
The timestamp is in the same base as the frame.
readonly trackingConfidencefloat
Positive number representing confidence we have in latest tracking update.
readonly trackingStateTrackingState
The Persistent Anchor's current tracking state.
A Persistent Anchor should only be used to display virtual content if its tracking state
is Tracking or Limited. Otherwise, the pose of the Persistent Anchor is not guaranteed
to be in the correct real world location
readonly trackingStateReasonVps2AnchorTrackingStateReason
The reason for the Persistent Anchor's current tracking state

Methods

NameTypeSummary
GetDataAsBytesbyte[]
The payload for this anchor as bytes[]
This is an expensive call!