I’m trying to make an uniform grid that adjusts to whatever is inside uniformly. So for example if I add one square border, the grid becomes square, and if i add another square border under it, it becomes rectangular vertically.
what I actually want is to set up a 3x7 grid with of perfectly square borders with images, similar to this:
hmm most inventory have predefine slot. they are set during construct and limit to like 10,20.50 slot. you can probably create those slot at runtime, where you add border/slot, set it image, quantity and all that. but maybe this used more cost than normal method. its simpler to just array loop item data and set to the predefined slot without creating new slot. i dont know, im not pro at this. but there must be reason why all inventory are made like that.