Uploaded July 2022 | Updated September 2026, 2 days ago
In this Unity Tutorial we will learn how to create reusable and versatile Health System. It's very simple but powerful, it will allow you to add hp point to anything in any type of game - your player, enemies, items, you name it! Health System is something you will need all the time so why not create it just ONCE and be done with it? :)
In the following tutorials we will be building on top of that - we will add health bar, damage indicator and lives system.
If you would like to show me some support:
patreon.com/pitiit
If you are looking for a great community:
discord.gg/7fRBSsjGNW
00:00 What we will create?
00:25 Health Script
03:30 Add health to a vase (item)
04:35 Add health to an enemy
05:00 Make trap to hurt player
#unity #rpg #health
In this Unity Tutorial we will learn how to create reusable and versatile Health System. It's very simple but powerful, it will allow you to add hp point to anything in any type of game - your player, enemies, items, you name it! Health System is something you will need all the time so why not create it just ONCE and be done with it? :)
In the following tutorials we will be building on top of that - we will add health bar, damage indicator and lives system.
If you would like to show me some support:
patreon.com/pitiit
If you are looking for a great community:
discord.gg/7fRBSsjGNW
00:00 What we will create?
00:25 Health Script
03:30 Add health to a vase (item)
04:35 Add health to an enemy
05:00 Make trap to hurt player
#unity #rpg #health
![Setup URP for 2D Game in 1MIN! Unity tutorial [New Version in the Description]
In this very short tutorial we will learn how to convert regular project to URP using the old way. Very soon I will release a video about how to do it in Unity 2021 LTS so please stay tunned :). Love you!
https://youtu.be/BCR2xQ7jWMU - New Version - Unity 2021 LTS Setup URP for 2D Game in 1MIN! Unity tutorial [New Version in the Description]](https://i.ytimg.com/vi/pjpcitJim04/mqdefault.jpg)

![Learn the difference between public, private and serialized - variables visibility in Unity
If you want to finally learn if you should use [SerializedField] private or public you are in good place! Well not only cover how to show and hide variables in the inspector but also the most important access modifiers.
Public, private, protected, internal? Got you covered!
SerializedField, HideInInspector? Got you covered too!
Common questions and good practices? Of course!
Official C# docs about access modifiers:
https://docs.microsoft.com/en-us/dotnet/csharp/programming-guide/classes-and-structs/access-modifiers
Unity docs [HideInInspector]:
https://docs.unity3d.com/ScriptReference/HideInInspector.html
Unity docs [SerializedField]:
https://docs.unity3d.com/ScriptReference/SerializeField.html
#UnityScripting #AccessModifiers #Attributes
00:00 Intro
00:13 Access Modifiers (with examples)
03:45 In the Inspector
04:49 Summary
05:33 FAQ Learn the difference between public, private and serialized - variables visibility in Unity](https://i.ytimg.com/vi/qqeazsu89Fk/mqdefault.jpg)







