widget show when look at an object

hi every
i am trying to let a widget show in UE5 when the player looks at an object and i tried some blueprints but it seem like it is not working an example of what i am trying to do is in this video i found (min 6:08)

can you help with that please
thank you all

Without knowing what you’ve tried and done, there’s no way to help you out. But, do have a look at this post:

It’s a slightly more advanced example as it also highlights actors close to the controlled pawn. Perhaps you can reverse engineer it, the project is attached.

i found this method online but i couldn’t find a way around it to make a widget icon instead of object name .