Best way to draw a box around an actor

Scaling the widget based on distance sort of worked, i also found a way to calculate the bounds in 2d space in c++ here https://forums.unrealengine.com/t/scene-actors-bounding-square-screen-space/459787/23

Ended up using the c++ method and drawing the texture to scale directly in DrawHUD() so the scaling is perfect regardless of distance