0 votes

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.

Godot version Godot Version 3.3rc6.official
in Engine by (369 points)

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

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.