How to Collect Items (Unity Tutorial) @KetraGames
How to Collect Items (Unity Tutorial)  @KetraGames
Uploaded January 2022 | Updated September 2026, 2 weeks ago
In this Unity tutorial we're going to look at how how to pick up collectables when the player collides with them.

We'll start by creating a diamond prefab that we can then reuse all over the scene.

We'll add a collider to the diamonds and show how to write a script to allow the player to collect the diamonds on collision.

Finally we'll add some UI elements to show the player how many diamonds they have collected.

The project files are available to our patrons here:
patreon.com/posts/61579877

Want to follow along? This project is a good starting point
patreon.com/posts/61188973

The final script can be found here
dotnetfiddle.net/Rzs92c

The diamond sprite used in the tutorial can be found here
bit.ly/3FTX7IZ

Help support our work:
► Patreon: patreon.com/ketragames
► Ko-fi: ko-fi.com/ketragames

Follow us:
► Ketra Games: ketra-games.com
► Patreon: patreon.com/ketragames
► Twitter: twitter.com/ketragames
► Facebook: facebook.com/ketragames

Introduction - 0:00
Getting Collectable Items from the Asset Store - 00:34
Creating a Diamond Prefab - 1:07
Setting up the Diamond Collider - 3:11
Creating Scripts to Pick Up the Diamonds - 4:13
Adding UI Elements - 7:22
Adding Scripts to Update the UI - 10:04
Adding more Diamonds - 13:07
Summary - 13:50

#KetraGames #LearnUnity #UnityTutorials #UnityTips
How to Collect Items (Unity Tutorial)Local Transform vs World Transform - Whats the Difference?Procedurally Generating a Perfect MazeShow a Silhouette When Hidden Using URP Renderer Features (Unity Tutorial)How to Use Sorting Layers (Unity Tutorial | 2D Top Down Shooter)Improving Ragdoll Physics (Unity Tutorial)👉 Why URP Shadows Look Worse in Unity 6 (And How to Improve Them)Creating Simple Animations (Unity Tutorial)How to Make the Player Shoot (Unity Tutorial | 2D Top Down Shooter)Slow Motion Effect (Unity Tutorial)How to Create 2D Movement Animations in Unity | Animator States and Transitions ExplainedTriggering Ragdoll Physics (Unity Tutorial)
Ketra Games |

How to Collect Items (Unity Tutorial)

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER