Creating a Survival Game with Unity (EP14: Stacking Items)

Опубликовано: 08 Февраль 2026
на канале: TUTO UNITY FR
4,781
147

Today we'll look at how to "stack" our items, that is, group the same items into a single slot and display to our player how many copies of that item they own.

📥 Project / Project Source Code:
https://github.com/TUTOUNITYFR/creer-...

☕ Support the channel / Donations
on Tipeee: https://www.tipeee.com/tuto-unity-fr
on uTip: http://utip.io/tutounityfr

🗂️ Summary
0:00 Introduction
1:29 Important Reminder
01:59 Stack Info
04:32 Changes in Inventory
12:30 Changes to the Crafting System
18:07 Recipe Updates
19:10 First Test
20:00 Displaying Stacks in the Inventory
24:00 Second Test
25:15 Displaying Stacks in the Crafting Panel
29:13 Third Test
29:38 Update to RemoveItem()
31:25 Last test
31:50 Tidying up!
33:10 Acknowledgments

······················································································
Unity version of the video: Unity 2021.3 LTS (personal/free version)
····································································································

💻 Website: https://www.tutounity.fr

🗃️ Asset Store affiliate link: https://assetstore.unity.com?aid=1101...
(By using this link, I earn a small commission on your purchases. It's neither cheaper nor more expensive for you; think of it as a way to indirectly support me.)

👉 Twitter:   / tutounityfr  
👉 Facebook:   / tutounityfr  
👉 Discord: https://www.tutounity.fr/discord

⚗️ Secondary channel (ZEF LAB):    / @zeflab  

📅 Upcoming video schedule: https://www.tutounity.fr/videos-a-ven...

·······································································································

Did you follow the tutorial but don't get the same results? You probably missed a step! Start the video again and pay attention to the details. Head to the Discord server for help.

······················································································

Download and install Unity (all versions):    • Télécharger et installer Unity facilement ...