Ive tried using widget components and it works but the scale of the box changes depending on distance from the actor.
I would like to do it in c++ but can use widgets if needed. Ive also tried to use GetActorBounds along with ProjectWorldLocationToScreen to try and determine screen space bounds and draw a rect in DrawHUD()
So far i have not had success in c++ or using widgets.
Mainly I’m trying to draw a rectangle and some text around an object that can be picked up by the player
This sounds good, if you can let the widget component check for distance to the player camera you can set a Width + Height on a sizebox widget on Tick to become smaller when the player is further away. If the content doesn’t scale to fit the SizeBox widget you can combine it with the ScaleBox widget.