on raycast hit assign game object?

I’ve found that Raycst hit doesn’t have a property of game object,

say if i had a public GameObject Target and i wan too use a recast from one object to hit a second target and then assign Target t the game object hit by a raycst are their any examples of this?

Raycast hit has a collider so you can use hit.collider.gameObject to access the game object hit if there is one. Probably best to check if the collider isnt null first.