Please tell me how to create interaction with the actor in the world

Hello. Please tell me how to create interaction with the actor in the world. My idea is that when the camera is hovered over the actor, a widget is displayed and the possibility of interaction appears, and accordingly, if I remove the camera from the object, the widget and the possibility of interaction are removed. I tried to attach a collision trigger to the camera, but it only works when the player moves along with the camera, if I just rotate the camera, then the collision does not seem to move with it. I tried to do traces through the line, updating the trace every 0.1 second, but the widget fires on impact and if I remove the camera it remains and in order to hide it it is necessary that the trace again collides with something. Someone please explain how to do it right. Thank you.