Async Loading Assets from DT to Brushes only last asset is shown
I have some difficulties to understand what is happening here. I have a custom widget called "TextIcon"
This widget is meant to be put in a scroll box. I gather the informations needed to construct this widget from a datatable and then add it as a child to the scrollbox. Here is the script that I have made.
However, this script partially works. Because as you can see below, only the last icon is shown.
I would like to understand why.
Thank you !
asked Feb 03 '19 at 10:54 AM in Blueprint Scripting
I have changed my manner of doing this, I've moved the loading process into c++. It is still a little messy but at least it works. I post my solution here, it may help other people.
I have created a class which derives from UUserWidget.
The meta tag "BindWidget" permits to access certain parts of the widget, the names must correspond with the names in the UMG widget.
The data table is created upon a structure that I've made in C++. I put it here as well.
The source file :
Here is the modified blueprint script :
And the final result :
If someone has any advice or criticism let me know, as it would make me progress.
Follow this question
Once you sign in you will be able to subscribe for any updates here