How to call native functions from widgetBP?

There are so many replies in document preview thread, so i start a new one.
I want to call native functions defined in c++ from Widget Blueprint. I tried to add some variable which was defined in c++ in widgetBp, but it can’t be loaded when restart UED!

I think this is the wrong forum as the solution lies in macro you need to call before define your c++ functions.
It’s the same for variables as well.

Watch closely to those native classes, how they call a macro before declare actual function in the class construct, that’s how you should do yours as well.

here are some links

Thanks for your reply!