EditorProperty for Array types?

Godot Version

4.7.stable.official

Question

I have an EditorInspectorPlugin with an EditorProperty that works just fine. But I haven’t seen anyone address (in tutorials, or in documentation) how to also handle Arrays of the type handled by the EditorProperty using Godot’s native Array wrapper (?) in the inspector. I.e., if I have an EditorProperty that makes a custom editor for a resource’s exported SelectableCoolString property, how do I make it so that this EditorProperty is also used when another resource has an Array[SelectableCoolString] exported property? Or do I have to make another EditorProperty to handle Arrays of that specific type, including rebuilding the UI for working with Arrays?

1 Like