[ home / overboard ] [ soy / qa / raid / r ] [ craft ] [ int / pol ] [ a / an / asp / biz / mtv / r9k / tech / v / sude / x ] [ q / news / chive / rules / pass / bans / status ] [ wiki / booru / irc ]

A banner for soyjak.party

/tech/ - Soyence and Technology

Download more RAM for your Mac here
Catalog
Email
Subject
Comment
File
Password (For file deletion.)

File: gpt.jpg 📥︎ (22.37 KB, 169x192) ImgOps

 â„–26277[Quote]

How do I make a simple inventory system that's like Lethal Company? Just a bar with a number of slots (6 in my case)

 â„–26278[Quote]

use an array.

 â„–26279[Quote]

What type of UI are you using?

 â„–26281[Quote]

Use AI dumb nigger

 â„–26282[Quote]

>>26279
My inventory ui uses UnityEmgine.UI, and my project's Inventory script. As for the visuals it's a Canvas, with a child panel that has 4 children images (slots)

 â„–26284[Quote]

make an item class. it must have a sprite field. then you make an array of items called inventory.
then on the start you update each image with a item sprite using for loop.

 â„–26293[Quote]

using System.Collections.Generic;
solved it for you



[Return][Catalog][Go to top][Post a Reply]
Delete Post [ ]
[ home / overboard ] [ soy / qa / raid / r ] [ craft ] [ int / pol ] [ a / an / asp / biz / mtv / r9k / tech / v / sude / x ] [ q / news / chive / rules / pass / bans / status ] [ wiki / booru / irc ]