# XRVps2Asset Source: https://www.nianticspatial.com/docs/api/unity/NianticSpatial.NSDK.AR.XRSubsystems.XRVps2Asset/ XRVps2Asset Describes session-relative data for a VPS asset's origin. --- ## Declaration public struct XRVps2Asset : ValueType, ITrackable, IEquatable ## Remarks The trackable id is the asset's UUID (see Vps2AssetId), and siteGuid identifies the site the asset belongs to. The pose is the asset's origin in AR session space. It is valid while the tracking state is Tracking; while Limited, the last known pose is kept. --- ## Constructors ### Constructor public XRVps2Asset(TrackableId trackableId) #### Summary Constructs the session-relative data for an asset whose origin is not tracked yet: identity pose and TrackingState.None. --- ### Overload public XRVps2Asset(TrackableId trackableId, Guid siteGuid, Pose pose, TrackingState trackingState, float trackingConfidence, ulong timestampMs) #### Summary Constructs the session-relative data for an asset. This is typically provided by the XRVps2AssetSubsystem implementation and not invoked directly. --- ## Properties | Name | Type | Summary | | --- | --- | --- | | static readonly defaultValue | XRVps2Asset | Gets a default-initialized XRVps2Asset. This may be different from the zero-initialized version (for example, the pose is Pose.identity instead of zero-initialized). | | readonly nativePtr | nint | Not used by this subsystem; always IntPtr.Zero. | | readonly pose | Pose | Get the Pose, in AR session space, of the asset's origin. | | readonly siteGuid | Guid | Get the UUID of the site the asset belongs to. Guid.Empty until the first tracking data arrives. | | readonly timestampMs | ulong | Get the timestamp of the camera frame the pose was last updated from, in monotonic milliseconds. The timestamp has the same base as the frame. | | readonly trackableId | TrackableId | Get the TrackableId associated with this asset: its UUID, convertible back with ToUuidString. | | readonly trackingConfidence | float | Get the confidence in the pose, from 0 (none) to 1 (full). | | readonly trackingState | TrackingState | Get the TrackingState of this asset. | --- ## Methods | Name | Type | Summary | | --- | --- | --- | | Equals | bool | Tests for equality. | | GetHashCode | int | Generates a hash suitable for use with containers like `HashSet` and `Dictionary`. | --- ## Operators | Name | Type | Summary | | --- | --- | --- | | static != | bool | Tests for inequality. Same as `!`Equals. | | static == | bool | Tests for equality. Same as Equals. | --- ## Relationships implements: UnityEngine.XR.ARSubsystems.ITrackable implements: System.IEquatable