How do I create a blueprint from a UObject?

Hello,

I have created a class inheriting from UObject, and I use as a data store to hold some properties.

For simplicity; I would like to be able to create a BP out of that class, so I can easily change the properties in the editor.

And in the code, I would just create an instance of that class using ConstructorHelpers::FObjectFinder and NewObject.

However, it doesn’t seem I’m allowed to create such a blueprint. My class is not displayed in the editor when I create the BP.

Is that a normal behavior? Is it supported?

Thanks in advance

Mike

1 Like

Hey Mike,

You should be able to make blueprints of your class if it has the Blueprintable keyword in its class declaration. The UTouchInterface class has a simple example:

UCLASS(Blueprintable, BlueprintType)
class ENGINE_API UTouchInterface : public UObject
{

Hope that helps!

  • Nick
3 Likes

Thanks a lot!

Hi Zoubi,

We have not heard back from you in a few days, so we are marking this post as Resolved for tracking purposes. If you are still experiencing the issue you reported, please respond to this message with additional information and we will offer further assistance.

Thank you.

Hello,

you did well :slight_smile:

I had added a comment to thank for the answer, but forgot to mark the problem as resolved