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(TrackableId, Pose, TrackingState, IntPtr, float, TrackableId) | Constructs an XRRaycast. |
Properties
Name | Description |
---|---|
defaultValue | 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. |
hitTrackableId | The TrackableId of the trackable hit by this raycast, or invalidId if none. |
nativePtr | 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 |
trackableId | A unique identifier for this raycast. |
trackingState | The TrackingState of this raycast. |
Methods
Name | Description |
---|---|
Equals(object) | Compares this raycast for equality with an |
Equals(XRRaycast) | Compares this raycast for equality with another raycast. |
GetHashCode() | 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 ! |