Unreal Engine - Test Healthbar Widget Component on Screen Space

Опубликовано: 10 Апрель 2026
на канале: SarlackIndustries
1,711
6

I created a health bar widget and set it as a component on my characters. At first I had it was set to 3d space, but the text looked fuzzy. The good thing was the widget would scale when moving to and from the player. And also other 3d objects would obscure the widget.

In this test I switched it to screen space to get the better quality text. Then I added some code to scale the widget based on distance to the player and to hide it when behind an object.