How to recenter HUD to an Actor

Hi , sorry but I don’t understand your answer, could you please explain a little more.

I’m using a Widget Blueprint that contains a Function that recenter the widget depending on the movement of the Actor in the screen that is why in the C++ code I pass the location to the Function called “RePositionContainer” and the use the player controller to cast that position from world coordinates to Screen (Project World To Screen blueprint event) coordinates and center there the widget, it works correctly for certain portions of the screen, mostly when the object is in the center and not near the borders of the screen. thank you