I can’t seem to call a function from my custom macro library from within a widget blueprint.
I can call the functions from other blueprints, but just not the widget blueprint.
Is there a way I can do this, or do I need to create a macro inside of the widget?
Just solved it, you need to have a special Macro Library for Widgets. When you create a macro library, there is a step to specify parent class. When you select Actor class, the macro library will be for Actors. To use macro library from Widgets, create a new macro library choosing “UserWidget” as a parent class.
Just stumbled across this problem again and surprised myself that I’ve answered this, I didn’t remember it … So basically the past-version of me answered my current-version of me. Interesting.
If my answer has helped, could you please accept it? Thanks!
Lol, I didn’t even see the answer, and completely forgot I posted the question.
That’s how I ended up doing it, so yes, you’re absolutely right haha XD
this is true but unfortunately if the parent class is Object you can’t have latent functions in the macro - a major reason I use a macro library at all!