HitData Properties |
The HitData type exposes the following members.
Name | Description | |
---|---|---|
Distance |
Distance to the hit point.
| |
Layer |
Gets the layer which detected the hit.
| |
Normal |
Gets the normal at the point in 3D wher eraycast hit the object.
| |
Point |
Gets the point in 3D where raycast hit the object.
| |
RaycastHit |
Gets raycast hit object for a 3D hit.
| |
RaycastHit2D |
Gets 2D raycast hit object for a 2D hit.
| |
RaycastHitUI |
Gets raycast hit for a UI hit.
| |
ScreenSpace |
Indicates if this is a Screen Space hit.
| |
SortingLayer |
Sorting layer of the hit target.
| |
SortingOrder |
Sorting order of the hit target.
| |
Target |
Gets target Target the hit.
| |
Type |
Gets the type of the hit.
|