godotengine / godot

Godot Engine – Multi-platform 2D and 3D game engine
https://godotengine.org
MIT License
90.82k stars 21.14k forks source link

Plugin created in addons sub-subfolder is detected, but class_name nodes & resources don't show in Create New Node/Resource dialogue #77099

Open razcore-rad opened 1 year ago

razcore-rad commented 1 year ago

Godot version

4.0.3.rc2.official.2ac4e3bb3

System information

Ubuntu 22.10, Vulkan, NVIDIA GeForce RTX™ 2060 / NVIDIA GeForce RTX™ 2060

Issue description

Custom (class_name) nodes & resources don't show up in Create in New Node/Resource dialogues.

This came up because I was looking at Godot Project Manager which uses NPM as a the packager and delivery mechanism. With NPM we can use scoped names like @scope/package and they get installed at addons/@scope/package.

They're detected by Godot just fine, it's just that the custom nodes and resources don't appear in the dialogues as mentioned.

Steps to reproduce

Open the attached project and see that:

in Create New Node/Resource.

Furthermore, it seems that we have access to the classes in code even if the plugins are ON or OFF. I thought they should be registered globally only when plugins are ON.

Minimal reproduction project

godot-4-dbg.zip


Further context https://github.com/godot-package-manager/cli/issues/29

bend-n commented 1 year ago

godot4.1 seems to be simply hanging when addons exist now