RaycastHit.Collider

The Collider that was hit.

RaycastHit.Collider

Property

Raycast Hit RaycastHit
Collider Output the hit Collider