I have a simple window in Godot and a separate item outside this window. My goal is to drag and drop the item into the window.
I wrote two solutions: -The first method removed the item when it collides with the window and instantiates it inside the window as new object of the same type. -My alternate method re-parents the item node to the window.
Both work, and require very little code, but what is the better standard of practice in game development when it comes to this type "add item" system? Which solution is better for performance in the long run if I have multiple items that I am adding to the window?