GDScript 2.0: @export_node_path()
does not support custom classes
#54284
Labels
Milestone
@export_node_path()
does not support custom classes
#54284
Godot version
4.0.dev (f113dc9)
System information
Windows 10
Issue description
When trying to use the new annotation for export variables
@export_node_path()
, it does not appear to support custom classes defined by the user, only predefined classes/nodes (i.e. Label, Sprite, etc.)Steps to reproduce
Main.gd
TestClass.gd
TestClass.gd
script in editorclass_name TestClass
just underextends <NODE>
Main.gd
script in editor@export_node_path(Label) var labelNodePath = NodePath()
@export_node_path(TestClass) var customNodePath = NodePath()
-
Label Node Path
- all but one node is greyed out, the singular node is a Label and can be selected-
Custom Node Path
- all nodes are greyed out and no nodes are selectableThe expected result is to be able to select the custom node (TestClass) inside NodePath window.
Minimal reproduction project
ExportNodePathCustomClass.zip
The text was updated successfully, but these errors were encountered: