unity rayCasthit get Gameobject code example Example: raycast hit gameobject RaycastHit.transform.gameObject : GameObject