Question by
roadtofame · Aug 23, 2018 at 05:01 AM ·
arraybuttonssetactiverpginventory system
SetActive the first button that is not active in order of an array
I'm very new to Unity and know this is probably too advanced for me to do atm, but I'm trying to make a simple RPG and having trouble with the inventory script. I have a grid of buttons on a panel as an inventory and have them on an array. I'd like to have the first inactive button in that array to be active when I've picked up an item, having that item's picture as the button's picture. What's the best way to do this? Here's how my inventory looks:
inventory.png
(145.5 kB)
Comment