RaycastHit.Transform

The Transform of the rigidbody or collider that was hit.

RaycastHit.Transform

Property

Raycast Hit RaycastHit
Transform Output the hitting Transform