Execute UFunction programmatically

Is there a way to execute UFunction by having a pointer to it or its name?

While compiling the blueprint, I have created a number of functions (bool MyFunc1(), bool MyFunc2()… bool MyFuncN()…).

From compile process I can get pointers to those functions and their names, but I am not aware of any way to execute them during runtime.

I think delegates is what you’re after.

Creating delegates on compile time was a bit too complicated.

Simple alternative is to use void UObject::ProcessEvent( UFunction* Function, void* Parms )

1 Like