Unable to create C++ Actor Component Class in blueprints

UCLASS( ClassGroup=(Custom), meta=(BlueprintSpawnableComponent) )
class GAME_API UAbilitySystemComponent : public UActorComponent
{
GENERATED_BODY()

public:

};

How do I make the above visible in blueprints? I want to be able to derive a blueprint class from this actor component.

I have a second UActorComponent class in C++ as well and it is not showing up. Every other class I’ve created is visible just fine.

Just to clarify, the AbilitySystem shows up in the components tab in blueprints for actors it’s attached to. It will also let me attach an AbilitySystemComponent. I want to inherit from this class in blueprints, which it is not letting me atm.

Hello MuzzyA,

To make this a blueprintable component, you’ll need to add a couple specifiers to the UClass declaration. You’ll need to edit line #1 of your post to be:

UCLASS( Blueprintable, BlueprintType, ClassGroup=(Custom), meta=(BlueprintSpawnableComponent) )

After doing this and hot-reloading, you should be able to make a blueprint based off this custom component.

Hope this helps!

3 Likes

Blueprintable! That was the one that I was missing. I tried BlueprintType before and that didn’t work. Didn’t realize there was a Blueprintable declaration.

Thanks very much .

1 Like