Godot Version 4.7 Windows.
Question: I subclassed a Control node and loaded it in the Godot editor, but I noticed that each time I change and save some part of the game via the editor, it changes the entire scene file and replaces it with type=“Control”. Why? The LLM cannot answer me.
I have this class: [1]
class MainMenu : public Control
{
GDCLASS(MainMenu, Control)
public:
MainMenu() = default;
~MainMenu() override = default;
void _ready() override;
protected:
static void _bind_methods();
};
When I change and save some node in the hierarchy of this Node, Godot changes my MainMenu from [node name=“MainMenu” type=“MainMenu”]
to
[node name=“MainMenu” type=“Control”], and then I need to Right click, select Change Type, and choose MainMenu each time.
What is going on here? I do not remember this being an issue in the previous versions.