XRVps2AnchorPayload
Represents the payload for a persistent anchor.
Declaration
public struct XRVps2AnchorPayload : ValueType, IEquatable<XRVps2AnchorPayload>See also
- XRVps2AnchorPayload
Constructors
public XRVps2AnchorPayload(nint nativePayloadPtr, int size)
Summary
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
Constructs the payload data for an anchor from native code.