Hello everyone,
I'd like to understand something about the connect() and disconnect():
So, i have got one vehicle (the builder) and one building (research facility). I use one container grid as HUD for the two items, so that's means i have two types of actions.
When i select the building, i add childs in the grid container and i connect each button to do an action. When i unselect the building to select the vehicle just after, i remove the childs and i add news childs as button in the grid container for the vehicle action.
At this point, godot says me the connections are already done. In my mind, the buttons for the building and vehicle aren't the same "type".
My question is: should i disconnect the signals before i remove the childs or should i modify these signal to do something else to avoid the error message ?
And whatever project is, should i always disconnect a signal when the node connected is deleted by default ?