-
-
Notifications
You must be signed in to change notification settings - Fork 21.4k
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
TypedArray does not work with Inheritence #89959
Comments
Btw: This is not a too critical bug, as you can simply use the parent type for your array instead as a workaround. |
This is a known limitation, see the discussion in: Consolidating there |
Wait, this is intended? Okay I did not see that coming. |
See the discussion, it's a known limitation, and being discussed how it should work, it's not intended necessarily, we just need to work out how it should work, you'll see the details there Also try node_array.assign(node_3d_array) |
Tested versions
System information
nixos unstable
Issue description
When trying to assign a typed array to an array of a parent type, godot will raise an error.
Steps to reproduce
Expected Result:
It is allowed to assign an array of inherited types to a typed array
Observed result:
Error: Value of Array[Node3D] cannot be assigned to a variable of type "Array[Node]".
Minimal reproduction project (MRP)
N/A
The text was updated successfully, but these errors were encountered: