Skip to content

Added PROPERTY_HINT_ENUM_AUTOSORT to sort enum values in the inspector

Chaosus requested to merge github/fork/Chaosus/vs_sort_funcs into master

This hint allows a better representation of enums - while keeping their index same, they sorted in alphabetical order in the inspector and property editor.

So, we can now add some beauty to their composition like: image

I've added this also to GDScript (for named enums):

enum State{
	WALK,
	ZZZ,
	AWAKE
}

export(State, true) var state

will be presented like

image

Merge request reports

Loading