@Megalomaniak said:
Immediate thought that occurs to me is that enums are constant not variable hence likely issues with trying to export them.
Sorry if I wasn't clear but I am not trying to export the enumeration itself , I want to export a variable with a restrained set of values defined by an enumeration. The classic way to do that in gdscript is as follow :
enum PossibleDirection {UP, RIGHT, DOWN, LEFT}
export(PossibleDirection) var player_direction

I could do that but I am trying learn advanced export using _get()
, _set()
and _get_property_list()
as briefly described on this page of the documentation