Dynamic text in custom K2 Node
I'm creating a bunch of new blueprint nodes for a plugin I'm developping. Some of these nodes need to have a text box at the bottom, which I managed to do as you can see in this image:
Now, the idea is that these nodes have some details in the detail panel when you select them, like this text box you see in the picture. I would like to bind the text in the SRichTextBox of the node to this Text field in the details panel. Like, when the user commits a new text, it automatically updates the text in the box.
Do you think it's possible? How would you do it?
Thanks a lot for every answer!
From a - not so - Crafty Weazel
asked Dec 14 '18 at 01:08 AM in C++ Programming
Thanks to Firefly74's comments and the link he gave me, I was able to do it.
So here is my final code for those who wonder:
Inside my Slate widget, I declare the text value this way. It's bound to a function in the slate widget which is called "GetTextFromNode()":
This function is implemented as follows:
And in the UBP_DialogBase node, I am returning a FText depending on the node properties. I will do all text parsing there in order to make full use of RichText widget.
answered Dec 16 '18 at 12:24 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here