how to get the gameobject of raycast code example Example: raycast hit gameobject RaycastHit.transform.gameObject : GameObject