I don’t know how to get data from textbox in X widget from Y blueprint class.
Can somebody give me sample?
I don’t know how to get data from textbox in X widget from Y blueprint class.
Can somebody give me sample?
If you’re using a class defined in blueprint without any native C++ implementation, you’re going to have a hard time. It is possible but it requires extensive metadata knowledge and property iterators.
The easiest way to achieve this is to create a base UserWidget class that wraps an editable textbox widget and create a BlueprintImplementableEvent or BlueprintNativeEvent function to return the text. Then create a Widget Blueprint that uses your base class as its parent. In this widget, add your editable text box, then override the blueprint exposed function you declared in C++ and have it return the text of your textbox widget or any other widget you’d like. In C++, you can then call the function you defined and it will correctly call the blueprint implementation to get your text.
This sounds like quite a bit of work, but it turns out to be pretty simple once you are able to wrap your head around it.