This version of Unity is unsupported.

RaycastHit.transform

public Transform transform;

Description

The Transform of the rigidbody or collider that was hit.