Godot.NET.Sdk
's GD0107
does not apply to exported members of type Node[]
#94589
Labels
Milestone
Godot.NET.Sdk
's GD0107
does not apply to exported members of type Node[]
#94589
Tested versions
Reproducible in: 4.3.dev.mono [e25f3c0], 4.2.2.stable.mono.official
System information
Windows 10 - Godot v4.2.2.stable.mono
Issue description
Godot.NET.Sdk
includes a diagnostic to prevent exports of nodes from resources. However, if you have an export of typeNode[]
, this diagnostic doesn't kick in and the project compiles. This results in the ability to create malformed resources that do not work correctly across scenes or after a reload of the editor.Steps to reproduce
Res
field is defined for the nodes in the scenes, and theNodes
field is defined for the resources.Minimal reproduction project (MRP)
Csharp Export Diagnostics MRP.zip
The text was updated successfully, but these errors were encountered: