I have 3 items in the following category’s, Apple (Food), Pistol (Weapons), Master Item (None). Whenever I pick up items and click the button related to the category the items show in that category as expected. My issue is whenever I click the ALL Button. Only the master Item shows up. I want all my items to be listed in the All category regardless of the Category type. Here Is My logic.
Don’t create and destroy items (reuse them)… creating and destroying will negatively affect your game’s performance. Trust me, it’s better to show and hide.
Make it easier on yourself by grouping. Then show all would be as easy as looping each group and packing the results. Flush the result to UI functions for display.
So Im thinking the issue relies somewhere else.. cuz.. I removed the sorting and when I pickup an item only the first item I pickup is adding to the inventory..
Your solution makes absolute sense. Although I figured out the problem. I was using a size box instead of a scroll box. Now everything is working properly. But I will take your advice into consideration. Thanks for the help. @Rev0verDrive & @Ivan3z