11000+款5星资源

8.5万+用户参与评分

10万+社区成员鼎力支持

每款资源都经过 Unity 审核

首页
工具
GUI
此内容由第三方提供商托管,该第三方提供商在未接受Targeting Cookies的情况下不允许观看视频。如果您想观看来自这些提供商的视频,请将“Targeting Cookie”的Cookie偏好设置为“是”。
1/6
Hi there!


DG Animated Health Displays (from Damian Gonzalez) gives you a simple-to-use customisable visual display for your player's health, ammo, progress, or whatever you want to keep track of and show players in the UI.

You will find two prefabs in this asset:
- Animated Health circle
- Animated Health bar

Both prefabs include an optional damage mask, that applies a red vignette effect to the screen to contribute to communicate the sense of danger and pain the character is in.

In this video you'll see demo scene and implementation example from scratch, for both circular and bar displays.

Since it's an UI element, it can be used for 2D or 3D games.

What "animated" means?
It actually has 2 animations:
- One for the circle or bar itself: The green part won't go suddenly from one point to the other, but slowly.
- The numbers will pulsate when they change, suddenly modifying its color and size, and then slowly going back to the original ones.
It will read and remember settings on the text, like its normal color and font size. And you can choose a color and font size for when it flashes.
For example, you can set it to flash green when increases, and flash red when decreases.


Things you can setup from the script in the inspector:
- Max health
- Show number: Whether you want the number to display or not
- Animate Numbers too: Maybe you don't want the numbers to animate. You can choose that.
- Animation speed: How fast/slow the green color will reach its destination
- Show Damage Mask: Whether you want to see the red tint or not.
- Use Mask Only below...: Maybe you want the mask to show only below 4 points of health, or only in the last 3. This won't just hide the mask for certain values. It will also recalculate the opacity.
For example: if you choose "only below 2", 2 points of health (and above) will trigger 0% opacity, 1 point 50% opacity and 0 points 100%.
But if you choose "only below 4", 4 and 5 points will set 0%, 3 points will set 25%, 2 points will set 50%, etc.

You can also set the number it self:
- Color animation when increases
- Color animation when decreases
- How much the size grows when flashing
- How fast/slow it goes back to normal color/size

And obviuosly you can easily change other things from the text itself: font, position, anchor, etc. For example you can put the number above the bar, at its right, etc.

This asset uses TextMesh Pro, but don't worry, it almost installs it self.

Installing this asset and using it is very easy. You can see the documentation if you want more details.

Animated Health Displays (bar & circle)

(暂无评分)
10 users have favourite this asset
(10)
$7.99
席位
1
更新的价格和增值税在结算时计算
退款政策
该资源受Unity资源商店退款政策约束。有关详细信息,请参见《最终用户许可协议》(EULA)中的第2.9.3节。
安全结账方式:
Supported payment methods: Visa, Mastercard, Maestro, Paypal, Amex
许可证类型
文件大小
854.5 KB
最新版本
1.0
最新发布日期
2020年3月25日
原始 Unity 版本
2019.1.0
高品质资源
11000+款5星资源
深受用户信赖
8.5万+用户参与评分
强大的社区支持
10万+社区成员鼎力支持
Unity logo
语言
反馈
合作伙伴计划
合作伙伴
USD
EUR
Copyright © 2025 Unity Technologies
所有价格不包含税
USD
EUR
$7.99