I’ve just started exploring SkookumScript today, and wanted to convert some of my terribly bloated blueprints for UI interaction over to code. In doing this, I noticed that some of the public methods for a few of the widget classes aren’t available. Most of these aren’t really an issue, but the TextBlock’s SetText function is a requirement for me.
So I guess my question is, why isn’t this method available, and what can I do to add it myself?
What I’d recommend as far as cleaning up crazy UMG blueprints is to create some simple functions in your UMG blueprint that you can call from . This can be as low-level as a function that takes a String and does nothing more than set the text of your TextBlock or something higher level that takes an enum and drills down into your canvas panel slot to change a color.
Ultimately it’d be nice to have FText supported, this is already on my personal todo list of community contributions but free time is at a premium!
Hi. I’m trying to implement FText but got error:
“|| sizeof(_DataType) <= sizeof(tUserData), “If _DataType does not fit inside m_user_data, it will be allocated from the heap, hence there must be a constructor to allocate the memory.”);”
How can i fix it?