Hey,

Any idea how i can unlock more inventory space? I see you can use variables to define the number of slots, so i could increment e.g. InventorySpace, but i do not like how it looks at low values. Instead I want the whole grid to show, but with locks, or chain or someother icon.

image

I was thinking I could have "locked" items that get removed as storage space is purchased, but then how would I deal with sorting them from reverse all the time and having "empty spaces"?site
  • edited August 26
    Currently you could use a UI box prefab with such a locked slot grid as a background, where the available slots are just placed over them and hide the lock behind them.

    I'll look into adding options for such locked slots, at least for display.
    Post edited by gamingislove on
    Please consider rating/reviewing my products on the Asset Store (hopefully positively), as that helps tremendously with getting found.
    If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
  • Ah right, and each prefab would have the Grid Layout be set to the appropriate amount and moved up so it's in the correct space.
    How would I choose which UI Box to show? Create an InventoryLevel Variable and have that as a conditional setting?
  • If your inventory container should have a maximum number of slots (e.g. 5x4 as in your screenshot), you just need to set up that one UI box. The layout components have options for how they behave, e.g. having the added things at the top and not centered as in your other screenshot (bad one).
    Please consider rating/reviewing my products on the Asset Store (hopefully positively), as that helps tremendously with getting found.
    If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
Sign In or Register to comment.