Godot Version
v4.2.2
Question
What does this error mean?
“Invalid type in function ‘add_child’ in base ‘HBoxContainer (scalemenu.gd)’. The Object-derived class of argument 1 (PackedScene) is not a subclass of the expected argument class”
Code:
SBC stores button nodes that can be pressed to instantiate objects. This code needs to add nodes to the container (SBC) when a function is run, and it needs to know what to add by checking an array (inventory, or invent)