-
if you’re using a Widget Component for this, switch its Space to Screen mode - it will then behave more like a 2d widget but with automatic screen tracking
-
if you’re using a Widget Component and want to keep it 3d, update its orientation to face the player camera onTick
-
if you’re using a traditional 2d widget, have the actor update the widget’s position onTick (do not do that in the widget) using Project World To Screen node, for example
Those 3 methods have their own advantages and disadvantages.