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(Trackable |
Constructs the session-relative data for an anchor.
This is typically provided by an implementation of the XRAnchor |
XRAnchor(Trackable |
Constructs the session-relative data for anchor.
This is typically provided by an implementation of the XRAnchor |
Properties
Name | Description |
---|---|
default |
Gets a default-initialized XRAnchor. This may be
different from the zero-initialized version (for example, the pose
is |
native |
A native pointer associated with the anchor. The data pointed to by this pointer is implementation-specific. |
pose | Get the |
session |
The id of the session from which this anchor originated. |
trackable |
Get the Trackable |
tracking |
Get the Tracking |
Methods
Name | Description |
---|---|
Equals(object) | Tests for equality. |
Equals(XRAnchor) | Tests for equality. |
Get |
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 |