Larx
November 4, 2024, 4:43pm
1
I have an enum with uppercase values like this
enum Types { SWORD, SHIELD, WAND}
And I want to see it in editor in upper case too not like this
instead I would like to see the values in the editor as are written in the enum:
“SWORD”, “SHIELD” and “WAND”
Is it possible or I need to deal with my OCD?
Try changing your editor setting “interface/inspector/default_property_name_style” to raw
edit: Tried it myself, doesn’t work and maybe worth a bug report.
Larx
November 4, 2024, 6:02pm
3
It changed the variable names correctly to the value defined in the scripts like this
@export var selected_weapon: Types = Types.SWORD
Now looks like selected_weapon in the edito but the values of the enum are still in PascalCase