Uploaded August 2022 | Updated September 2026, 2 days ago
In this Unity Tutorial we will be adding damage indicators (floating damage counters) to our health system. I did my best to make the design as reusable and extensible as possible. We will be using a little bit of interesting things like inheritance and interfaces. :) I hope you enjoy it!
If you would like to have access to all the code, you can support me via Patreon:
patreon.com/pitiit
If you are looking for a great community:
discord.gg/7fRBSsjGNW
#rpg #damage #unity
00:00 What we will be creating
00:06 Setup #1
02:46 Floating Message script
04:00 Make the health system even better
06:00 Message Spawner script
06:52 IInGameMessage interface
07:30 Damage Spawner Indicator
08:15 Setup #2
09:01 Removing "-"
In this Unity Tutorial we will be adding damage indicators (floating damage counters) to our health system. I did my best to make the design as reusable and extensible as possible. We will be using a little bit of interesting things like inheritance and interfaces. :) I hope you enjoy it!
If you would like to have access to all the code, you can support me via Patreon:
patreon.com/pitiit
If you are looking for a great community:
discord.gg/7fRBSsjGNW
#rpg #damage #unity
00:00 What we will be creating
00:06 Setup #1
02:46 Floating Message script
04:00 Make the health system even better
06:00 Message Spawner script
06:52 IInGameMessage interface
07:30 Damage Spawner Indicator
08:15 Setup #2
09:01 Removing "-"


![Unity Scripting: Improve Productivity by using Attributes
In this episode well learn how to use attributes provided to us by UnityEngine. I decided to focus on the ones I am using the most, please bear in mind that there are many more and it is definitely worth having a look at the official Unity docs to learn more :).
Got any questions? Join our discord:
https://discord.gg/hrZF93sCkc
Previous episode about Events:
https://www.youtube.com/watch?v=AGGmnVIhHvc
The whole Unity Scripting playlist:
https://www.youtube.com/watch?v=DWj_mPUtuqw&list=PLZyYVAihdXAhjdUy-6BVSCh4Qyjh34iiv
#UnityScripting #Attributes #CSharp
00:00 Intro
00:06 What are attributes
00:23 Setup
00:30 [RequireComponent]
01:15 [Header]
01:25 [Tooltip]
01:32 [Space]
01:44 [Range]
01:56 [HideInInspector]
02:09 [SerializeField]
02:24 [ContextMenu]
03:05 [RuntimeInitializeOnLoadMethod] Unity Scripting: Improve Productivity by using Attributes](https://i.ytimg.com/vi/oDLc-RK17y0/mqdefault.jpg)

![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)



