Trying to figure out what is up with my inventory

Hello.
My inventory drag appears to work, HOWEVER WHEN I drag empty slots, the slot overlay comes with:

Additional edit: The setup is as follows:

I have a sprite on the slotitem gameobject because otherwise it’s just white. The fix to this may be to make it transparent while there is nothing in that slot, so that I still technically drag, but the player cannot see it.
However, I can’t quite see how to make that happen, and the lecture isn’t really sticking in my head in that regard.

Can I see the Heirarchy of your InventorySlot prefab, along with inspectors for each?

Here is the course version for reference. The first image is the Inspector for the InventorySlot itself, with the background image set.


The second is the item that is the image which our Dragger should be dragging.

The third is the Image for the quantity. This is normally off, but I’ve turned it on for reference

I Solved it, and it turned out to have been just me being dumb and putting the scripts in the wrong prefabs :sweat_smile: Thanks anyways!

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

Privacy & Terms