Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Inventory UI

This week I worked on displaying the Player's inventory. the main thing that gave me issues was allowing the names of the items to be displayed all across the inventory slots and allowing for them to be removed. I had trouble with this due to being unfamiliar with how Unity's UI system worked and what each class object could do. I struggled with this for about 3 days until realizing how simple it really was.

The solution I found to this issue was only affecting the text and strings of what was being displayed. in order to do this I had to access the objects I needed in the hierarchy properly which I was able to do through using debug tools as my eyes to understand what I accessing. After I was able to wrap my head around that part all I had to do was display the names as objects were being picked up using the Update function and a couple for loops to display the names or clear them.

Solution to finding the the text objects needed to display object names.

Solution to adding and clearing names from the inventory display.

Support this post

Did you like this post? Tell us

Leave a comment

Log in with your itch.io account to leave a comment.