Hi i was wondering how would i get rid of empty inventory slot. I did use the Menu: Check num slot and that works on one slot but i'm trying to do when inventory is removed then check for inventory slot 1 or 2 or 3 or 4 then remove the slot. For example: I have 4 inventory items then when i find 1 inventory it removes the name on inventory and then the words slide to next slot then removes that empty slot but i can't seem to check for 3,2, or 1. This is the image of removing 1 empty slot and it does work but how can i check for if there is 3,2,1 slots left to remove them
http://imgur.com/q9UZFE5
Comments
You need to pass on further if the value is less than 4 and continue to your removal process.
I would have used, if it is more than 0 in Menu check num slots then go to Inventory: Check.
This way you don't need to worry about how many slots are out there in your game.
For example, you could increas the difficulty of the game by increasing the number of objects a player must find for example.
Plus why do you need Check Num Slot at all if the conditions is not met you have no other action to send to. Just start with action 2 and so on.
Or try to use run in parallel action after action 2 : Inventory Check if conditions are not meant and send it to remove action and the other send to 4 : Inventory Check action.
2: Inventory : check if conditions are met should go to 4 : inventory Check and so on just like in your picture. But in my I erased those lines , and those green lines should be there
Sorry for my nonsense... if it won't work
How have you set up your Inventory UI's hierarchy? Please post a screenshot of your UI's hierarchy (expanded), and let me know which Buttons you've assigned to the InventoryBox element in your Menu Manager.
You might have to PM me you canvas prefab so that I can take a look. Bundle in your Menu Manager asset file, too - you can select the two assets and right-click to export a .unitypackage file - no other files should be needed.