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

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

Constructs the payload data for an anchor from native code.


Properties

NameTypeSummary
readonly nativePtrnint
A native pointer associated with the anchor payload.
The data pointed to by this pointer is implementation-specific.
readonly sizeint
The size of the payload

Methods

NameTypeSummary
Equalsbool
Tests for equality.
GetDataAsBytesbyte[]
Get the data associated with this XRVps2AnchorPayload.
This is an expensive operation!
Returns empty byte[] if payload is invalid
GetHashCodeint
-

Operators

NameTypeSummary
static !=bool
Tests for inequality. Same as !Equals.
static ==bool
Tests for equality. Same as Equals.

Relationships

implements: System.IEquatable