Struct XRRaycast
Represents the intersection of a raycast with a trackable.
Inherited Members
Namespace: UnityEngine .XR.ARSubsystems
Assembly: solution.dll
Syntax
public struct XRRaycast : ITrackable, IEquatable<XRRaycast>
Constructors
Name | Description |
---|---|
XRRaycast(Trackable |
Constructs an XRRaycast. |
Properties
Name | Description |
---|---|
default |
A default-initialized raycast. This can be different from a zero-initialized raycast. |
distance | The session-space distance from the raycast origin to the intersection point. |
hit |
The Trackable |
native |
The pointer associated with this raycast. The data this pointer points to is implementation-defined. Refer to the platform-specific AR package for details. |
pose | The session-space |
trackable |
A unique identifier for this raycast. |
tracking |
The Tracking |
Methods
Name | Description |
---|---|
Equals(object) | Compares this raycast for equality with an |
Equals(XRRaycast) | Compares this raycast for equality with another raycast. |
Get |
Computes a hash suitable for use in a |
Operators
Name | Description |
---|---|
operator ==(XRRaycast, XRRaycast) | Tests for equality between two XRRaycasts. Same as |
operator !=(XRRaycast, XRRaycast) | Tests for inequality between two XRRaycasts. Same as ! |