How to reorder variable Categories in Class Defaults?

Worked for me, tytytyty! I can’t believe this bug has been around almost a decade.

Use “Category“ specifier in UPROPERTY to reorder variables :grinning_face:

Reorder variable categories via Edit > Class Defaults Settings.

Use variable categories alphabetically or rename to reorder :heart_eyes:

I’ve had the same issue in UE 5.6; the solution I found is to delete the variable and create a new one with the same properties. Then reconnect it, and you can place it in the category you want — the order will reset.

Hi guys, for anyone with this issue the fix for me was the one suggested by yazhuo How to reorder variable Categories in Class Defaults? - #35 by Yazhuo

If you want to reorder subcategories remember to eliminate blank spaces in the category definition:

Base | Pre
Base | Wait

should become

Base|Pre
Base|Wait

and place them in the PrioritizeCategories of the UCLASS:

UCLASS(ClassGroup = (Custom), meta = (BlueprintSpawnableComponent, PrioritizeCategories = “Base|Pre Base|Wait Base|Attack Base|Recover”), Abstract).

this finally fixed the subcategory order.