Problem with sibling hierarchy in inventory sytem
Hi everyone, i explain you my problem :
I have an inventory system on my game, for this i use a gameObject names "Inventory" and in it i have 6 "slot", when i pick an object i add it to a list and put in the first free slot image of this object. Then when i drop it, it will delete the image in the current selected slot, and it will parse all my list object and delete the corresponding element.
My probleme is when after i drop an item, i can only drop item from lower position on this, otherwise i get an error because it don't find it on the list.
I think this problem is linked to another: when i drag an item from his slot, it overfly only on lower position slot, and fly behind the slot if they are on higher position.
I suppose there is a kind of siblings hierarchy with my slot, but i don't finded anything to fix it (like an option on my slot grid for exemple).
I hope someone will understand my problems, if its not clear enough i can add you some screen shots.
Your answer
Follow this Question
Related Questions
drag and merge object 0 Answers
Enum filter for Item system 1 Answer
Buttons not highlighting while dragging 0 Answers
RectangleContainsScreenPoint works backwards. 0 Answers
C# Inventory items use help 1 Answer