-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Array.resize() doesn't mention typed arrays #9005
Comments
I was about to say that godotengine/godot#69451 would've solved it but even there it mentions Technically saying |
Hmmm interesting... I was going to guess that was calling something like var c: Array[bool] = [type_convert(null, TYPE_BOOL)]
var d: Array[int] = [type_convert(null, TYPE_INT)]
var e: Array[float] = [type_convert(null, TYPE_FLOAT)]
var f: Array[String] = [type_convert(null, TYPE_STRING)]
var g: Array[Array] = [type_convert(null, TYPE_ARRAY)]
var h: Array[Dictionary] = [type_convert(null, TYPE_DICTIONARY)]
printt("c", c)
printt("d", d)
printt("e", e)
printt("f", f)
printt("g", g)
printt("h", h) Because
|
Well, actually, it may be more appropriate to say All of those |
I should have read |
Your Godot version: v4.2.1.stable.official [b09f793f5]
Issue description:
It's silly to report this but this is incorrect when the array has type:
They receive the initialization value for their type.
Result:
URL to the documentation page:
https://docs.godotengine.org/en/latest/classes/class_array.html#class-array-method-resize
The text was updated successfully, but these errors were encountered: