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
| Name | Type | Summary |
|---|---|---|
| readonly geolocation | Nullable<XRGeolocation> | The geolocation of this Persistent Anchor, if available. |
| PredictedPose | Pose | 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 TimestampMs | ulong | 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 trackingConfidence | float | Positive number representing confidence we have in latest tracking update. |
| readonly trackingState | TrackingState | 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 trackingStateReason | Vps2AnchorTrackingStateReason | The reason for the Persistent Anchor's current tracking state |
Methods
| Name | Type | Summary |
|---|---|---|
| GetDataAsBytes | byte[] | The payload for this anchor as bytes[] This is an expensive call! |