I’ve been trying for a while now to get a UMG widget to render at an actor location but it only seems to work when the camera is looking around 0,0,0.
It’s a 3D side scrolling platformer and when the player leaves the area around 0,0,0 ConvertWorldLocationToScreenLocation returns large numbers causing the widget to be off screen.
Is there a way around this? Am I using it wrong? I’ve tried using it with SetPositionInViewport and SetPosition.
The goal is to have choices appear over an actor in the world that the player can select. I’ve done a little bit of research into the WidgetComponent but was worried about the prospect as it’s been marked as experimental for a while now.
The attachement is called on the tick event of the widget.