Skip to content
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

C# Export of custom typed array is un-assignable #75066

Closed
HarveyKBrown opened this issue Mar 18, 2023 · 2 comments
Closed

C# Export of custom typed array is un-assignable #75066

HarveyKBrown opened this issue Mar 18, 2023 · 2 comments

Comments

@HarveyKBrown
Copy link

HarveyKBrown commented Mar 18, 2023

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.

image

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.

Minimal reproduction project

Godot4test.zip

@Zireael07
Copy link
Contributor

Dupe of #74975

@Calinou: Can this issue get pinned so that people don't keep opening umpteenth duplicates?

@Calinou
Copy link
Member

Calinou commented Mar 21, 2023

@Calinou: Can this issue get pinned so that people don't keep opening umpteenth duplicates?

Done.

@Calinou Calinou closed this as not planned Won't fix, can't repro, duplicate, stale Mar 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants