Just like the title,how can I add text when i enter a certain trigger box?
I am not sure I understand the question. Do you want to show an UI with text when you enter a trigger box? In that case, simply spawn a widget with the text and bind it to the viewport, and remove it when you go outside of the triggerbox.
(With the class obviously being your widget. Connect the events to your trigger overlap events.)
@cridia sadly,not like that I heard there was a “text render component” feature but I cant seem to get it
trying to do the same thing… found the solution?
If you want to use a text render component, have you already tried simply adding the component to the actor responsible for the trigger? It’s added in the same way you would add any component to your classes. I tried and had no trouble getting it to change it’s text. Simply use the Set Text function from the Render Text component to set it whenever you need.
Some additional information, now that I got the engine booted up;
Just use the whole set text thing with your own trigger implementation. If you want to know what type of trigger I used; I used a static mesh with a 1M cube, set the cube’s “visible” to false and changed it’s collision preset to “trigger.”
@Mag454 not yet