So I’m trying to turn on a UI text, “press E to interact”, when the player walks through a trigger, I’ve managed to make the turn on and off work but I want that text to appear above my player(maybe set the anchor to the player position?) and I can’t seem to change the exact position of the text. Can someone tell me about ways I could go about for this?
Hello there,
You have a couple of options there. You could:
1 - Use a Canvas set to World Position. That way, it will always be where you placed it (above the player). That might be a little overkill for one text, but if you later want to display more stuff on there, you already have a place to do it.
2- Use a 3D text. Go to Create-> 3D Object → 3D Text. You can place it wherever you want, and even animate it through code if you wish.
If you have rendering issues with the 3D Text (blurry text), increase the font to something like 100, and then reduce the scale of the object itself.
Hope that helps!
Cheers,
~LegendBacon