HitData Structure |
Namespace: TouchScript.Hit
public struct HitData
The HitData type exposes the following members.
| Name | Description | |
|---|---|---|
| HitData(RaycastHitUI, TouchLayer, Boolean) |
Initializes a new instance of the HitData struct from a UI raycast.
| |
| HitData(RaycastHit, TouchLayer, Boolean) |
Initializes a new instance of the HitData struct from a 3D raycast.
| |
| HitData(RaycastHit2D, TouchLayer, Boolean) |
Initializes a new instance of the HitData struct from a 2D raycast.
| |
| HitData(Transform, TouchLayer, Boolean) |
Initializes a new instance of the HitData struct.
|
| 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.
|