# XRVps2AnchorPayload Source: https://www.nianticspatial.com/docs/api/unity/NianticSpatial.NSDK.AR.XRSubsystems.XRVps2AnchorPayload/ XRVps2AnchorPayload Represents the payload for a persistent anchor. --- ## Declaration public struct XRVps2AnchorPayload : ValueType, IEquatable ## See also XRVps2AnchorPayload --- ## Constructors public XRVps2AnchorPayload(nint nativePayloadPtr, int size) #### Summary Constructs the payload data for an anchor from native code. --- ## Properties | Name | Type | Summary | | --- | --- | --- | | readonly nativePtr | nint | A native pointer associated with the anchor payload. The data pointed to by this pointer is implementation-specific. | | readonly size | int | The size of the payload | --- ## Methods | Name | Type | Summary | | --- | --- | --- | | Equals | bool | Tests for equality. | | GetDataAsBytes | byte[] | Get the data associated with this XRVps2AnchorPayload. This is an expensive operation! Returns empty byte[] if payload is invalid | | GetHashCode | int | - | --- ## Operators | Name | Type | Summary | | --- | --- | --- | | static != | bool | Tests for inequality. Same as `!`Equals. | | static == | bool | Tests for equality. Same as Equals. | --- ## Relationships implements: System.IEquatable