RaycastHit.transform
var transform: Transform;
Transform transform;
transform as Transform
Description

The Transform of the rigidbody or collider that was hit.

See Also: Physics.Raycast, Physics.Linecast, Physics.RaycastAll.