How does the container and inventory item work?

In the video, Sam creates an empty Container to hold the inventory item so it doesn’t display over the cooldown image. How does this actually work? Couldn’t figure it out looking through the code. Not sure how it knows to go back under the container.

Found it! DragItem.cs. It records the original parent and resets it on end drag.

1 Like

That’s correct. Well done.

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms