Struct XRRaycastHit
Represents the intersection of a raycast with a trackable.
Implements
Inherited Members
Namespace: UnityEngine.XR.ARSubsystems
Assembly: solution.dll
Syntax
public struct XRRaycastHit : IEquatable<XRRaycastHit>
Constructors
Name | Description |
---|---|
XRRaycastHit(TrackableId, Pose, float, TrackableType) | Constructs an XRRaycastHit. |
Properties
Name | Description |
---|---|
defaultValue | A default-initialized raycast hit. This can be different from a zero-initialized raycast hit. |
distance | The session-space distance from the raycast origin to the intersection point. |
hitType | The types of trackables which were hit by the ray. |
pose | The session-space |
trackableId | The TrackableId of the trackable which was hit. This can be invalidId as some trackables (for example, feature points) don't have ids. |
Methods
Name | Description |
---|---|
Equals(object) | Tests for equality. |
Equals(XRRaycastHit) | Tests for equality. |
GetHashCode() | Generates a hash suitable for use with containers like |
Operators
Name | Description |
---|---|
operator ==(XRRaycastHit, XRRaycastHit) | Tests for equality. Same as Equals(XRRaycastHit). |
operator !=(XRRaycastHit, XRRaycastHit) | Tests for inequality. Same as |