How do I make a simple UI pop up when the player is within range

This is probably a simple request so I apologise. I’m new to unreal and I’m curious as to how you would get text to face the camera, I’ve tried using billboards and it works if the text is within the same blueprint as the camera but how would I do it if I wanted the text to be above another actor but still look at the camera?

I have the code for if the player is within range of the target and I assume its as simple as setting it to be inactive at the start and when its close setting it to active.

I would really appreciate it if I could get an explanation or even better a code example and I’d like to avoid using blueprint coding as much as possible.

Thank you in advance!

if your just working with text then you can make a copy the text material and use world offset to make it face the camera.

the picture of ‘camera facing v2’ is probably the simplest option.
https://forums.unrealengine.com/development-discussion/rendering/118396-help-with-camera-facing-material

if you want it to only rotate around the z axis.

you can use the ‘find look at rotation’ and the ‘set world rotation’ to turn components. you’d have to run it every tick or nearly every tick to get it to turn smoothly. Performance-wise you’d want to only run it when you need to, so you could use a gate node or a timer, or just enable and disable tick altogether. i’m not sure what the c++ would look like.

I have actually come across both of these tutorials before but I was more looking into how I’d rotate the specific component within a blueprint with just code, as opposed to manipulating materials and blueprint nodes.

Thanks for the advice I’ve looked into ‘look at rotation’ and it will probably work if I can individually select the text component in another actor, if anyone knows how to do this it will help a lot!