Bug Issue https://www.gamedev.tv/courses/734254/lectures/13265957

In this lesson I encountered the same bug as Ayeng_AE mentioned, when this happens the InventoryItem gameObject becomes parented to the Stats Canvas and when you go to hide the Inventory Panel the InventoryItems that are now parented to the Canvas remain visible. From what I understand is that you parent to the canvas temporarily in order to be able to drag the item around the whole screen but is there a way to also save the original Inventory Slot parent so that it returns to being a child of one of those?

Optionally would there be a way to break out of all this if the left mouse is already dragging something and the right mouse is clicked everything just goes back to how it was?

https://imgur.com/ymUZfRi < shows objects new parent and “floating” potion/hammer

I have never been able to duplicate this particular issue. Rather than playing 20 questions, could you go ahead and zip up your project and upload it to https://gdev.tv/projectupload and I’ll see if I can figure out why this is happening and what to do for a fix.

Privacy & Terms