How to reorder variable Categories in Class Defaults?

Changing order of variable categories in “My Blueprint” tab doesn’t change the order of categories in Class Defaults tab. Is there a way to change it?

[Edit: Moved to Blueprint Scripting]

1 Like

I still didn’t figure it out. In “My Blueprint” panel, my categories are sorted like X,Y,Z, but in “Class Defaults” they are in Y,Z,X order.

I’ve tried renaming my categories with prefixes like A_, B_ and 1_ 2_, etc. to maybe sort it alphabetically, but nothing helped… Are categories ordered randomly? I can’t find anything that will somehow control their order in Details/Class Defaults tabs.

I guess it’s not possible, and categories are sorted randomly then :wink: That’s strange though, because it gives us an option to reorder categories, but it doesn’t affect their order anywhere else besides blueprint variables window.

1 Like

bump to this! Stucked at the same - can’t reorder categories

1 Like

I wonder if is there any rule that ‘sorts’ all the categories… For now, it seems completely random.

Hmm… Maybe it should be a feature request? :slight_smile: But it’s strange that it doesn’t work…

1 Like

More bumps to this! Has there been any progress on a solution? Or has it at least been added as a feature request?

1 Like

I’ve just created a feature request here: Reorder variable Categories in Class Defaults - Feedback for Unreal Engine team - Unreal Engine Forums

1 Like

Bump, any plans to fix this? Currently it doesn’t seem possible to intentionally re-order the position of the variable categories in the details panel for a custom class. Very troublesome for complex classes.

1 Like

You can use sub-categories as a stop gap to help keep your custom vars easy to find in the details menu (probably only through c++): https://docs.unrealengine.com/latest/INT/Programming/UnrealArchitecture/Reference/Properties/Specifiers/Category/index.html
It still doesn’t alphabetise things but at least they’re a bit easier to keep track of.

Hi

Add a Support for this issue please.

Thank you

Are you sure? Still same in the latest 4.19.2. You don’t misunderstand this as array reordering, don’t you?

I reorder var “RunNum” in the My Blueprint and it’s reordered in the Class Defaults. also in editor too (4.18.3)

1 Like

Yes, we were able to reorder variables with no problem. The problem is with the categories’ reordering.

oh sorry - understand now

No problem, I had to downvote this as you sent it as an answer.

you are wellcome)

Sorry, i made a mistake. It is base on the name to sort the category.
I tried to use number on the beginning of the name, like 01,02,03. And it works.
But when i try 01_,02_,03_, it just sorting randomly.
So i think you can’t use _ in you category.

There is actually a way to do this but it might seem unintuitive.

You can’t reorder the categories in the Class Defaults but you can do it in the Variables section of the Blueprint which causes it to change in the Class defaults and Details panel in the level (if it contains instance editable variables) as well.

First, make sure to have Show Inherited Variables checked inside the Blueprint:

Then, drag the categories you want to reorder onto the category you want to place them above in the ordering. Note that a category can never be placed above “Components” which might cause you to think it isn’t working. You need to place it on the next one if you want it as high as possible.

From here:

image

To here:

image

In my details panel with the actor selected in the level it goes from:

To:

The same goes for the class default view.

2 Likes