Variable categories made in C++ can not be used in Blueprint?


I’m have added some properties (variables) to my C++ class under the category name ‘Bolt’.
I derived a BP class from that C++ class.
Then I added some other variables to the BP class. I would like to place those under the Bolt category as well, but it won’t let me.
If I set the category to ‘Bolt’ for a variable in BP, it just resets to ‘default’. If I choose any other name, it works fine.

So apparently there is some conflict between categories in C++ and in BP… does anyone know how to deal with this?

Or should this be a bug report?

Hey -

I’m not seeing the behavior you’re describing on my end. I created a variable in my actor class header:

UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = Unique)
float Num;

After making a blueprint of this class I added a variable through the editor and was able to use the drop down menu to set its Category to Unique. Could you list the steps you took so that I can make sure my setup matches what you’re doing?


I cannot seem to reproduce it in other projects. Also when I go back from the BP editor to the main editor, and click the object of the BP-class, I do see all variables under the same category, so seems like under the hood it did change it correctly, only the BP editor was giving me problems.

Hey -

It sounds as though a restart of the editor may have fixed the problem for you? If that is the case I will mark this post as resolved for tracking purposes. If you are still having issues with your variable categories feel free to comment back here to reopen the post for further investigation.