You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When you export an array of a custom type in C#, you cannot assign values to the elements in the inspector.
Steps to reproduce
public partial class NodeType : Node2D
{
}
public partial class Icon : Sprite2D
{
[Export]
NodeType[] Nodes;
[Export]
NodeType SingleNode;
}
I have 2 Nodes, NODE_A (using script NodeType), NODE_B (using script Icon).
When assigning NODE_A to SingleNode, it works fine. When you assign a NODE_A to an element in the Nodes array, nothing happens, no value is assigned and the value remains as "Assign..." in the inspector.
Godot version
4.0.1.rc2 & 4.0.0
System information
Win10, x64, TargetFramework .NET6.0
Issue description
When you export an array of a custom type in C#, you cannot assign values to the elements in the inspector.
Steps to reproduce
I have 2 Nodes, NODE_A (using script NodeType), NODE_B (using script Icon).
When assigning NODE_A to SingleNode, it works fine. When you assign a NODE_A to an element in the Nodes array, nothing happens, no value is assigned and the value remains as "Assign..." in the inspector.
Minimal reproduction project
Godot4test.zip
The text was updated successfully, but these errors were encountered: