-
Notifications
You must be signed in to change notification settings - Fork 45
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
Exported list property not properly visible in Editor #603
Comments
As far as I know, it has to be |
Yeah. I'm unsure what to do here;
Personally i think the "right" approach would be to prevent registration of collections which are not VariantArrays. |
@chippmann While I don't think that this is critical at all (just sticking to Could it be an option to let the class I just wanted to put the idea out there. |
There is a problem with creating an auto conversion: |
Since 4.0, the engine know the type inside a VariantArray, it's actually the only case of generic handled by Godot. But I agree that using List is tricky for performances. Cedric mentioned we have this feature to handle bitfelds. But in that case, I would rather remove this weird List hack and create a proper GodotBitField type instead. |
@MartinHaeusler Sorry completely forgot this reply of yours. Still definitely worth a consideration. Regarding the Bit field case; i agree with @CedNaru here. We should remove these hacks and create dedicated types for them. After that we can talk about implicit collection conversions in the registration. But as long as these hacks remain, this endeavor is futile. |
If the user creates a new exported list property in a class, this won't be seen in the editor as such. For example, the following code causes this behavior:
While, using
VariantArray
s, everything works as expected:The text was updated successfully, but these errors were encountered: