Struct XRAnchor
Describes session-relative data for an anchor.
Inherited Members
Namespace: UnityEngine.XR.ARSubsystems
Assembly: solution.dll
Syntax
public struct XRAnchor : ITrackable, IEquatable<XRAnchor>
Constructors
Name | Description |
---|---|
XRAnchor(TrackableId, Pose, TrackingState, IntPtr) | Constructs the session-relative data for an anchor. This is typically provided by an implementation of the XRAnchorSubsystem and not invoked directly. |
XRAnchor(TrackableId, Pose, TrackingState, IntPtr, Guid) | Constructs the session-relative data for anchor. This is typically provided by an implementation of the XRAnchorSubsystem and not invoked directly. |
Properties
Name | Description |
---|---|
defaultValue | Gets a default-initialized XRAnchor. This may be
different from the zero-initialized version (for example, the pose
is |
nativePtr | A native pointer associated with the anchor. The data pointed to by this pointer is implementation-specific. |
pose | Get the |
sessionId | The id of the session from which this anchor originated. |
trackableId | Get the TrackableId associated with this anchor. |
trackingState | Get the TrackingState of this anchor. |
Methods
Name | Description |
---|---|
Equals(object) | Tests for equality. |
Equals(XRAnchor) | Tests for equality. |
GetHashCode() | Generates a hash suitable for use with containers like |
Operators
Name | Description |
---|---|
operator ==(XRAnchor, XRAnchor) | Tests for equality. Same as Equals(XRAnchor). |
operator !=(XRAnchor, XRAnchor) | Tests for inequality. Same as |