C# export array property hints

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

Any way to make PropertyHint work with arrays? E.g. neither [Export(PropertyHint.MultilineText)] public String[] or [Export(PropertyHint.MultilineText)] public Godot.Collections.Array<String> result in multiline strings shown in editor.

For me this works.
Can you better explain what you need and what you see in the Editor?

juppi | 2022-09-10 12:40

GDScript on the left, C# on the right (String[] and string[] produced identical results). Desired editor result is on the left.

Tested in v3.5.stable.mono.official

GreatCornDev | 2022-09-10 15:28

Oh, I see what you meant.

Seems like a bug. You should report this at https://github.com/godotengine/godot/issues

juppi | 2022-09-10 16:05