Skip to content

Cannot export C# array of type Vector2I, Vector3I, Vector4I: "GD0102: The type of the exported field is not supported" #95358

Open
godotengine/godot-docs
#10332
@Lennart-Bours

Description

@Lennart-Bours

Tested versions

4.2.2 stable

System information

Windows 10, Godot 4.2.2 stable

Issue description

In the manual, it says:

C# arrays can exported as long as the element type is a Variant-compatible type.

Vector2I, Vector3I, and Vector4I are listed as Variant compatible types in the manual.

However, when trying to export e.g. an Vector2I array, Godot gives the error: "GD0102: The type of the exported field is not supported"

Steps to reproduce

Create a C# script with the line:

[Export] private Vector2I[] testI;

then try to compile.

Minimal reproduction project (MRP)

N/A

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions