-
-
Notifications
You must be signed in to change notification settings - Fork 22k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
C#: Add PropertyHint.Enum
support to Array<StringName>
#78264
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works as expected, code change looks good.
Out of curiosity, is this feature supported in GDScript? I don't see it in the docs / can't find intuitively how to use it for an |
I don't think it is, beyond manually defining an appropriate Edit: gdscript doesn't even support the enum annotation on StringName. |
gds 3.5 export support Array[String] . |
GDScript doesn't support this, but there's an open PR: It seems to support Personally, I think it'd be best to merge GDScript support first, and make the C# implementation sync with that. My biggest concern is to deviate too much from whatever GDScript ends up doing. |
I don't know how applicable this is to C#, but I'll mention it here for completeness. In the PR, |
Thanks for the explanation! We don't have an If/when we implement an When Footnotes
|
So it looks like there are already deviations. What do you think @raulsntos @RedworkDE @neikeq, should we merge this now then? |
I don't see how this can conflict with any future plans we may end up having, unless these plans break the behavior of the existing |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm also fine with merging this. Since we already support Array<string>
it's not too far-fetched to also support Array<StringName>
.
My biggest concerns were addressed by @dalexeev, it seems we want to support Array[String]
and Array[StringName]
with @export_enum
in GDScript too, so it feels like this matches.
PropertyHint.Enum
support to Array<StringName>
Let's merge it then. Thanks! |
Previously, only
StringName
was supported but notArray<StringName>
, now it has been added.