Skip to content

Not possible to set a typed array property from C# #74936

Description

@okla

Godot version

4.0.stable.mono

System information

Fedora Linux 37

Issue description

In foo.gd there is a property var arr: Array[int]. Trying to set it from a C# script using

foo.Set("arr", Godot.Collections.Array<int>{ 0, 1, 2 });

doesn't work, the array stays empty. Making it untyped (var arr: Array) fixes the problem, so there is something with static types.

Steps to reproduce

  1. Create a typed array property in a GDScript
  2. Try to set it from a C# script

Minimal reproduction project

N/A

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions