#Array Index Name

1 messages · Page 1 of 1 (latest)

nimble chasm
#

How would you replace the index value with a string name?

solid stratus
nimble chasm
#

Yes

solid stratus
#

You need a Dictionary for that.

nimble chasm
#

I know in unity, adding a variable named 'name' will automatically do it but how in godot?

#

Ah

#

I guess that could be fine

solid stratus
#

Arrays don't support anything but numeric indexes in any language that i know off.

nimble chasm
#

No not to access, I'm talking about displaying it like that in the inspector

#

So the name value would replace the index.

solid stratus
#

Aaah, i don't think you can. You'd need your own custom plugin for that