Text render component on a actor be editable from a UI

I have some text above an actor signifying the name of the character, and when I start my level it shows an editable text box where I can change the name to whatever I want…how can I link the two? I’ve looked online for tutorials and find some similar to what I’m going for but nothing about editing text that links to the text above an actor that can be changed.

280740-text2.png

edited, misread what you needed, lack of coffee, etc…

The most straightforward way - in the widget override onTextCommitted and:

Get Player Character > Cast > get Text Render → Set Text (plug in the text from Committed)


Here’s an alternative I’d normally lean towards; but it all depends on the circumstances and what it is really used for:

thank you that helped me make this… which is odd idk what i am missing…on text committed char1name that works so when i edit the box it changes the name so thats good but “on text committed char 2 name” isnt working any idea why? i know im missing something simple

2 things:

  • where are the references coming from, namely Character 1 & Cannon 2 - are they valid? If these are not set up prior to this execution, you should be seeing Accessed None errors in the log.
  • you’re casting, but you’re not doing anything with the return values - perhaps that’s what you want to do. The whole point of casting is getting access to the specific object instance of the correct type.