Learn to make damage numbers or damage text popups appear in Unity with TextMeshPro and Unity animations, or with an advanced procedural technique. There are definitely many approaches to making floating damage popups, but one must beware of inefficient, resource intensive or bug-prone solutions.
This method is, in my experience, a quick and easy way to create the effect, and have it work on moving 2D sprites in a game.
For a full text writeup, code and more tutorials, check out my website at
https://wintermutedigital.com/post/damage-text-unity/
----
Timestamps
0:00 - Intro
0:15 - Imports
0:45 - Adding Text
2:20 - Animation
4:20 - Animation Events
8:28 - Prefab Configuration
9:15 - Adding an Enemy Sprite
14:25 - Result
15:15 - Gameplay Demo
#unity #gamedevtuts #gamedev #indiegamedev