C# Array<StringName> support PropertyHint.Enum

This commit is contained in:
Magian 2023-06-15 16:00:24 +08:00
parent 33957aee69
commit e8aeb6baa0

View File

@ -620,7 +620,7 @@ namespace Godot.SourceGenerators
bool isPresetHint = false;
if (elementVariantType == VariantType.String)
if (elementVariantType == VariantType.String || elementVariantType == VariantType.StringName)
isPresetHint = GetStringArrayEnumHint(elementVariantType, exportAttr, out hintString);
if (!isPresetHint)