How to set up PERFECT Collectable in Unity game engine. C#.

Опубликовано: 20 Март 2026
на канале: Elliot Greenwood
1,923
81

I hope you will find it useful!
In this tutorial, you will learn how to set up simple game collectable system in Unity game Engine. In addition, you will learn how to set up simple Actions Listener, Abstract Class and add sounds in C#.

The real purpose of this video is to store this video as a for of memory for my future projects. This video is like 10 potential tutorials merged into 1.

You can leave all your suggestions in the comments down bellow. I will make sure to check them out!

Unity Version: 2022.3.4f1 (Not recommended)
2D Project.
(This version has bugged Sprite physics editor.)


My learning source I recommend to check out:
Comp-3 Interactive:    / @comp3interactive  
Great Unity tutorials with useful and clear examples.



Timestamps:
00:00 Introduction.
00:08 Exporting Collectable.
00:16 Importing Sprite Sheet into Unity.
00:35 Set up and Slice the Sprite Sheet.
01:05 Creating a Collectable Object.
01:15 Animating The Collectable.
02:38 Collectable Components.
02:50 Player Components.
03:16 Coding Collectable Collisions.
04:33 Creating Abstract Class.
05:44 Creating Game Manager.
06:11 Score Variable and Text.
07:07 Actions Listener.
08:54 Creating UI Score Text
09:47 Testing1.
10:07 Prefabing Collectables.
10:12 Coding Sounds.
11:54 Testing2.
12:10 Outro.


This video can be summed in these titles:
How to set up 2D Animations in Unity.
How to Code Collectables in Unity.
How to use Abstract Class function in Unity.
How to use Actions Listeners in Unity.
How to code Sounds.





#ElliotGreenwood #gamedev #pixelart #unity