# Health "Bar" Number

**URL:** <https://forums.unrealengine.com/t/health-bar-number/298993>\
**Category:** Community & Industry Discussion\
**Tags:** health, unreal-engine, question\
**Created:** [November 15, 2014, 2:53am UTC](https://forums.unrealengine.com/t/health-bar-number/298993 "2014-11-15T02:53:36Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nadragul\_1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Nadragul\_1](https://forums.unrealengine.com/u/Nadragul_1)\
**Post date:** [November 15, 2014, 2:53am UTC](https://forums.unrealengine.com/t/health-bar-number/298993/1 "2014-11-15T02:53:36Z")

</div>

So I a at a loss, I have searched for a answer for this. I have a Health Bar, but how do I have the HUD report the Health in numbers such as 78/100, etc. Any input would be great a B would be awesome…

Thanks!!

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_618bb797](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_618bb797](https://forums.unrealengine.com/u/anonymous_user_618bb797)\
**Post date:** [November 15, 2014, 3:03am UTC](https://forums.unrealengine.com/t/health-bar-number/298993/2 "2014-11-15T03:03:44Z")

</div>

Are your current health and max health numbers floats?

---

<div class="post-metadata">

**Author:** ![Nadragul\_1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Nadragul\_1](https://forums.unrealengine.com/u/Nadragul_1)\
**Post date:** [November 15, 2014, 3:27am UTC](https://forums.unrealengine.com/t/health-bar-number/298993/3 "2014-11-15T03:27:15Z")

</div>

Currently Yes…I am considering changing them to Integers. Is one better than the other? I assuming it would be better for it to be an Integer.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_618bb797](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_618bb797](https://forums.unrealengine.com/u/anonymous_user_618bb797)\
**Post date:** [November 15, 2014, 3:43am UTC](https://forums.unrealengine.com/t/health-bar-number/298993/4 "2014-11-15T03:43:44Z")

</div>

Float is required for the most part.

Right click in whatever folder you want to create your HUD. Click User Interface → Widget Blueprint

Once in there, place a Progress Bar. Down at the “Appearance” level, there should be Percent. Click to create a new bind for that.

[](https://i.imgur.com/1WSbBHU.png)

(Ignore the Health Percentage thing above; I changed my graph to show you how I’d implement it. My Health Percentage is calculated in C++ Native Code. Also, ignore the typecast from Integer to Float.)

The cast is to my character type.

How do you set owning pawn?

 ![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/6/3/663d0d6c1e79f925c9891bfb7bbf0329791f78b9.png)  
This is in a regular blueprint. There’s probably a cleaner way to check. In Game HUD is my regular HUD.

Lemme know if that worked.

---

<div class="post-metadata">

**Author:** ![Nadragul\_1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Nadragul\_1](https://forums.unrealengine.com/u/Nadragul_1)\
**Post date:** [November 15, 2014, 3:56am UTC](https://forums.unrealengine.com/t/health-bar-number/298993/5 "2014-11-15T03:56:10Z")

</div>

I already have a Progress Bar, I have a functioning HUD. What I want to have happen is to replace the Progress Bar with Numbers:

Full Health: 100/100

Take some Damage:  
69/100

Take more damage:

47/100

Etc…

Does that make more sense?? I guess I need a “tickng” or counting health bar.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_618bb797](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_618bb797](https://forums.unrealengine.com/u/anonymous_user_618bb797)\
**Post date:** [November 15, 2014, 4:19am UTC](https://forums.unrealengine.com/t/health-bar-number/298993/6 "2014-11-15T04:19:19Z")

</div>

Oh, so something more like what is pictured at the very top of the screen (ignore the overhead in-game part)

 ![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/6/0/3602fb470409192d37acdd7977120124a5296b89.jpeg)  
This is how I set that up using similar nodes to before:

 ![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/f/9/9f9419d5e6b7f56e2a5d98c3ccda3344423168c1.png)  
I added that as a binding on the Content\>Text function of a text block.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_5bed0930](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_5bed0930](https://forums.unrealengine.com/u/anonymous_user_5bed0930)\
**Post date:** [March 12, 2019, 9:22pm UTC](https://forums.unrealengine.com/t/health-bar-number/298993/7 "2019-03-12T21:22:46Z")

</div>

how do i make this not show a decimal?

---

<div class="post-metadata">

**Author:** ![Nebula\_Games\_Inc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Nebula\_Games\_Inc](https://forums.unrealengine.com/u/Nebula_Games_Inc)\
**Post date:** [March 12, 2019, 11:51pm UTC](https://forums.unrealengine.com/t/health-bar-number/298993/8 "2019-03-12T23:51:32Z")

</div>

If you just want a health value displayed there is no need for a “bar” of any kind. Why clutter the interface? Simply create a text box to represent the player health and have a binding or a function that updates the text within the box to display the player’s current health. So you can create a horizontal box with 2 text boxes inside. The first check the box in the upper right hand corner of the widget designer to make it a “variable”. The second text box you can hard code to the player’s max health or 100 if it will be a percent. Then simply update the first text box (the variable one) to equal player health through a binding or a function.

---

<div class="post-metadata">

**Author:** ![mrstarks510](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mrstarks510](https://forums.unrealengine.com/u/mrstarks510)\
**Post date:** [April 22, 2020, 11:06pm UTC](https://forums.unrealengine.com/t/health-bar-number/298993/9 "2020-04-22T23:06:05Z")

</div>

So if I understand correctly. When his player takes damage it is displayed with a decimal. Ex-69.11/100. He wants only whole numbers to be displayed. Ex- 69/100. Right? Okay so a solution is to not use the progress bar at all. Instead use two text boxes. One for current health and the other for max health. With text box health does this also mean that the player will take and gain damage as whole numbers or is it all in percentages but only displayed as whole numbers? Meaning the damged taken that is displayed, what player sees is 69/100 but it really it is still 69.11/100? I hope what I’m asking makes sense?

---

<div class="post-metadata">

**Author:** ![EonSilverSpark](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@EonSilverSpark](https://forums.unrealengine.com/u/EonSilverSpark)\
**Post date:** [October 9, 2022, 2:06pm UTC](https://forums.unrealengine.com/t/health-bar-number/298993/10 "2022-10-09T14:06:59Z")

</div>

Round to Integer

---

<div class="post-metadata">

**Author:** ![Eiiszahn](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Eiiszahn](https://forums.unrealengine.com/u/Eiiszahn)\
**Post date:** [April 4, 2026, 1:06pm UTC](https://forums.unrealengine.com/t/health-bar-number/298993/11 "2026-04-04T13:06:14Z")

</div>

Like EonSIlverSpark said, Round to Integer does wonders.  
I just wanted to add some pictures for people that come after so they have a visual they can go off of.  
Pictures of:

- Healthbar Graph
- Healthnumbers Graph
- Actual ingame/inengine visual

 ![grafik](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/c/1/dc1a55dd9659d8de923c90a3602d6899ca951dbb.jpeg)
