Hello everyone,
I have a problem with trying to modify the system for putting on/taking off and swapping items.
I have created a system that works correctly: I click on an item and it is placed in the appropriate slot, I click on another item and the items swap places, I click on a worn item and it is taken off and placed in the first available slot:
And now I'm trying to convert it to a button, not clicking on the item.
The button is located on a different layer, “item description.” When you click on the item, this layer appears, a window pops up with a description of the item and a button.
I created a global variable Selecte_ItemUID (because I think that somewhere in the game the itemUID record gets lost along the way) and reworked the code. I tried many ways, but it doesn't work properly as in the first option. Is the problem that this button is on a different layer?
Any idea, what im doing wrong?