Download

[Plugin]How to use the C++ classes in plugin to create blueprint class in unreal project

I have added a new blank plugin to my project, and I added a class in the plugin.
Is it possible to use this class to be able to create blueprints in unreal project?

My project Structure

Project/Plugins/MyPlugin/Source/MyPlugin/Public/TestBlueprint.h
Project/Plugins/MyPlugin/Source/MyPlugin/Public/TestBlueprint.cpp

This is what my class looks like


UCLASS(BlueprintType)
class MYPLUGIN_API UTestBlueprint: public UObject
{
public:
GENERATED_UCLASS_BODY()

UTestBlueprint();
~UTestBlueprint();
};

But when I go back to editor, compile and add a blueprint class in my project, I cant see TestBlueprint as one of the classes that I can use to create my blueprint. Is it possible to do that, if yes, how do I go about it and what am I doing wrong?

I want to add the blueprint class in the UnrealProject not my plugin.