C++ Blueprint function library

Hey
I’m trying to make some functions in C++ so that I can use them in blueprints, but for some reason I don’t understand I can’t get them to show in the blueprints.

Here’s my code:


I’m not sure what I’m missing, but when I look at the function list in a BP I can’t find the testFunc. Could I be somehow building/compiling it wrong? I thought I’d included all right UFUNCTION stuff? Can anyone help me out?

EDIT: It turns out I was building wrong: I was only building in VS, not in the editor with (CTRL ALT F11)

That should work. If you were using live coding, you should exit the editor and restart the editor.

You can always try adding ‘BlueprintType’ to the UCLASS macro, but it should not be needed for this.

If the class typename exists in C++ or in blueprints already, it may not show up. You could try a different class name.

1 Like

you may just need to restart the editor if you havent already too