How can I subclass a component with a Blueprint?

I have a custom component that I’ve made in C++ (because I want to attach it to the PlayerController to make it easily globally available), and I want to add functionality to it in Blueprints (because it’s quicker to prototype).

But it seems you can’t make Blueprints of components? Am I missing something? Can someone tell me another way to achieve the same thing?

Hey Benhumphreys-

Adding the specifier Blueprintable to the UCLASS macro will make the class available for creating blueprints of that class. You can also use the specifier BlueprintType to to expose the class as a type that can be used for variables inside a blueprint.

Cheers

This fixed it! That’s what I was missing. Components really are treated like a regular UCLASS type. Thanks!