RaycastHit2D.Distance

The distance from the ray’s origin to the impact point.

RaycastHit2D.Distance

Properties

Property NameDescription
Raycast Hit 2D RaycastHit2D
Distance Output the hit distance