Skip to content

Document the return values of resize on packed arrays #10760

Closed
@theraot

Description

@theraot

Your Godot version:

v4.4.stable.official [4c311cbee]

Issue description:

The resize method of packed array returns int, but the documentation does not explain what the value is. In practices it returns 0 and for what I understand from the source code it is an Error. So, I presume the only other possible value is ERR_OUT_OF_MEMORY.

Note that it is not hard to imagine that the return value is something related to the size.

URL to the documentation page (if already existing):

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:class referenceIssues and PRs about the class reference, which should be addressed on the Godot engine repositoryenhancement

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions