EDIT: Never mind. I found the solution. I just need to check the 'Only show when effective?' checkbox for each one of the buttons.
Hi. I'm using Unity UI for my inventory. I recently implemented the shift right and left buttons. I got them to work after fiddling with the settings. But I would like the buttons to be disabled or turned off when they won't do anything.
For example:
My inventory bar has a max of 5 slots but I'm currently holding 7 items. When I open the inventory, I would see items 1-5. The left arrow button should be disabled to indicate that there's nothing else to the left. If I click the right arrow button, the items would shift and now display items 2-6. Now both arrow buttons should be enabled. Clicking left should display 1-5 again, clicking right should display 3-7. When 3-7 are displayed, the right arrow should be disabled.
How can I implement this behaviour? I'm using Unity 2022.3.26f1 and AC v1.74.2;
It looks like you're new here. If you want to get involved, click one of these buttons!