Use functions from blueprint function library in C++ code?

Hello there! After applying what I learned in this article, I can make functions that can be called anywhere in a blueprint. However, I can’t find the way to call those functions in C++ code. I tried including the .h, but it still wont work.

Any ideas? Thank you in advance :smiley:

I figured it out

in the .cpp:

include “MyLibrary.h”

UMyLibrary::UsefulFunction();

2 Likes

Thanks for the help!

Also, if you’re like me, don’t forget to make your function public if you want to use it in other classes (thought I would’ve had those basics down by now XP).

1 Like