Skip to main content
←API Reference ←NianticSpatial.NSDK.AR.XRSubsystems

XRVps2Anchor

Describes session-relative data for an anchor.

Declaration​

public struct XRVps2Anchor : ValueType, ITrackable, IEquatable<XRVps2Anchor>

Constructors​

Constructor​

public XRVps2Anchor(TrackableId trackableId)

Overload 1​

public XRVps2Anchor(TrackableId trackableId, bool initializing)

Overload 2​

public XRVps2Anchor(TrackableId trackableId, Pose pose, TrackingState trackingState, Vps2AnchorTrackingStateReason trackingStateReason, XRVps2AnchorPayload xrVps2AnchorPayload, ulong timestampMs, float trackingConfidence, Nullable<XRGeolocation> geolocation)

Properties​

NameTypeSummary
static readonly defaultValueXRVps2Anchor
-
readonly geolocationNullable<XRGeolocation>
-
readonly nativePtrnint
-
readonly posePose
-
readonly timestampMsulong
-
readonly trackableIdTrackableId
-
readonly trackingConfidencefloat
-
readonly trackingStateTrackingState
-
readonly trackingStateReasonVps2AnchorTrackingStateReason
-

Methods​

NameTypeSummary
Equalsbool
-
GetHashCodeint
-

Operators​

NameTypeSummary
static !=bool
-
static ==bool
-

Relationships​

implements: UnityEngine.XR.ARSubsystems.ITrackable

implements: System.IEquatable