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
Exporting an array with a type of Array[Node], where node can be any class that inherits from node, will result in an array that cannot have anything assigned to it from editor.
Interestingly, the Array appears to be typed Array[Object], rather than Array[Node]. Maybe related to #74712?
Steps to reproduce
Create a script and attach it to a node.
Export an array with type Array[Node]. Here is a simple way of how you could do that in code: @export var export_array : Array[Node] = []
(optional) Add a new node into the currently open scene to add onto the array.
Add an entry to the array with the drop-down on the right.
Try and assign a node to the exported array.
Minimal reproduction project
Included below is a project with a main node, a node with the export script, an object node (which can be ignored if you prefer.), and an export script. I have added an extra line to the export script which should demonstrate how the export annotation usually behaves without an array.
Godot version
4.0.stable
System information
Windows 10, NVIDIA GeForce GTX 1650 SUPER, Vulkan
Issue description
Exporting an array with a type of Array[Node], where node can be any class that inherits from node, will result in an array that cannot have anything assigned to it from editor.
Interestingly, the Array appears to be typed Array[Object], rather than Array[Node]. Maybe related to #74712?
Steps to reproduce
@export var export_array : Array[Node] = []
Minimal reproduction project
Included below is a project with a main node, a node with the export script, an object node (which can be ignored if you prefer.), and an export script. I have added an extra line to the export script which should demonstrate how the export annotation usually behaves without an array.
ExportArrayIssueProject.zip
The text was updated successfully, but these errors were encountered: