How to edit the values of a inspector exported string list?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By The_Black_Chess_King

So this:

export(String,"1 , 2 , 3") var LIST = "1"

Allows a exported list to be accessed from the inspector:

enter image description here

How do we edit the values of the list during a tool script?

If I do LIST = MyArray it turns the dropdown list as a static array

How can I do that? I have a 1 level array that would like to become the list.

Related? https://forum.godotengine.org/46917/changing-export-hint_string

The_Black_Chess_King | 2021-03-29 18:25

Upon further experimentation I reached a error that maybe says it’s not possible to do what I want, looks like the exports are constants, which makes sense… So maaaybe I am approaching this the wrong way… Ah well, I’ll comment back if I get anything solid.

enter image description here

The_Black_Chess_King | 2021-03-29 19:22