Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How would i make an inventory system that will scale? [closed]

Asked by
I_Nev 200 Moderation Voter
4 years ago

So i want to make an inventory that will automatically grow as the player has more items in it, but i have no idea how to do this honestly. I've tried loops and taking the size of the frame and scaling it off that. works fine on my pc but on smaller displays its too much scaling, and on bigger ones its too little. I don't really know how you'd even make something like this, all i need it to do is hold stuff and that seems like the biggest hurdle ive came to yet lol. If you have any code snippets that i could find useful i'd greatly appreciate it especially if it also scales the cells in the UiGridLayout then i'd love it. If not a code snippet then please explain me something i could do, as i'd definitely like to know how it works and i'd really look into it

0
Are you scaling your GUI in Offset or Scale? DetectiveRaie 193 — 4y

Closed as Not Constructive by lazycoolboy500, ScuffedAI, zblox164, and killerbrenden

This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.

Why was this question closed?

1 answer

Log in to vote
0
Answered by 4 years ago

When you're resizing it, just use the left side of the brackets "{left,right},{left,right}". It goes from 0 to 1 and anywhere in between. It is the same ratio to all sizes.

Please at least show some efforts in solving this. This is not-constructive please take a look at the Community Guidelines.

If you have any questions or issues contact me. ;)

Ad