© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
65 replies
Sangit

❔ Item stacking in unity c#

I am trying to get my items to stack in my inventory, so i have added a counter to my script which displays the amount of items currently in the stack, i have added that to my item prefab and my InventoryitemController script. however i am a bit lost on how to actually increment the count value each time a item is added and to stack them properly. This is what i have so far (edited)
image.png
image.png
image.png
image.png
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements
Next page

Similar Threads

❔ Inventory item stacking
C#CC# / help
3y ago
C# for Unity
C#CC# / help
2y ago
❔ c# unity error
C#CC# / help
3y ago
❔ Little question about c# in UNITY
C#CC# / help
3y ago