Raycast only returning parent object; need child hit

I need to get the name of the child object hit by a Raycast, but everything I’ve tried just returns the name of the parent object. Does anyone know the solution to this?

Have you found an answer? I’m also looking for this

It’s very counter intuitive, hit.transform returns the parent’s transform of the hit, yet hit.collider returns the specific collider of the hit.

Hey thank you @Leohd, you saved me a lot of time.

And I´ve tested something more out:
hit.transform returns the transform of the “nearest” Rigidbody in the Hierarchy.
hit.collider.transform returns the transform of the real hitted Collider.

And it can result into a problem, if you have something like a fbx models with multiple objects and you setup the parent of these with a Rigidbody and the childs of these with Convex MeshColliders for example.

Best regards!