Can't drop nodes because script .gd does not inherit node

Godot Version

4.2

Question

It’s a bit strange that I can’t drop my nodes into gdscript inside the player scene unlike the main scene, I can still drop them. I just want to ask why that happens?

so it’s drag and drop to get the reference/nodepath to the node?

yeah, it’s bug or what?

from the looks of it, it should have been fixed on stable release, because it’s merged, but i dont see it on Godot changelog at the moment, need to search if it’s alrdy fixed then i can say it’s fixed

I got this error too in 4.2 stable version

Does it work if your script doesn’t have any errors?

2 Likes

Same problem, but you are right. You have to correct the error, save the script, then the drag & drop works again !

Removing console errors worked for me, rather annoying that it can’t automatically create the link if there’s errors or give a more detailed error