RAYCAST NO HIT A UI IMAGE IN CANVAS in 3d project?

Hi thks for your help

How could get the name of ui image when i click whit the mouse ,
i tried as raycast but not hit the ui element , only hit the 3d objects out in the terrain

Thaks

i found de code, thks