How can I call a Blueprint function inside C++ code?

To call a blueprint function from c++ you need to get a UBlueprint pointer in the constructor of the class you want to call from then later call the FindFunction on that which will return a UFunction pointer. You will have to manualy set the properties then ProcessEvent with the UFunction. There should be some examples online if you look for them.

1 Like