UButton onclick function

Hi developers,

how do I use the OnClicked function,

myButton->OnClicked(“Do a function”);

Getting a reference to a umg element crashes the engine.

That’s my answer.