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
extends <SomeNode2D>
const GrowingRect = preload("growing_rect.gd")
@export var growing_rect: GrowingRect
where growing_rect.gd contains a class extending Node:
extends Node2D
...
The variable slot is successfully exported, however, it's not possible to select a node of this type in the editor inspector. The "Select a node" list remains empty, or when "Show All" is on, it's greyed out:
This is inconvenient because it forces the use of global class_name for everything that's exported, cluttering the global namespace, instead of a scene being local and self-contained.
See also #77322, however, in contrast to that more general issue, the export works fine (by manually editing the scene file), it's just the editor that doesn't show matches.
Steps to reproduce
Open the attached minimal reproduction project
Open "root.tscn" scene
Select "PlayerController"
In the inspector, remove the selected node for "GrowingRect" then go to the chooser and try to select the node again
Tested versions
4.2-stable
System information
N/A
Issue description
With the following GDscript:
where
growing_rect.gd
contains a class extending Node:The variable slot is successfully exported, however, it's not possible to select a node of this type in the editor inspector. The "Select a node" list remains empty, or when "Show All" is on, it's greyed out:
This is inconvenient because it forces the use of global
class_name
for everything that's exported, cluttering the global namespace, instead of a scene being local and self-contained.See also #77322, however, in contrast to that more general issue, the export works fine (by manually editing the scene file), it's just the editor that doesn't show matches.
Steps to reproduce
Minimal reproduction project (MRP)
repro-anonnode.tar.gz
The text was updated successfully, but these errors were encountered: