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 |
---|---|
XRRaycast |
Constructs an XRRaycast |
Properties
Name | Description |
---|---|
default |
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. |
hit |
The types of trackables which were hit by the ray. |
pose | The session-space |
trackable |
The Trackable |
Methods
Name | Description |
---|---|
Equals(object) | Tests for equality. |
Equals(XRRaycast |
Tests for equality. |
Get |
Generates a hash suitable for use with containers like |
Operators
Name | Description |
---|---|
operator ==(XRRaycast |
Tests for equality. Same as Equals(XRRaycast |
operator !=(XRRaycast |
Tests for inequality. Same as |