# HP/Mana Bar with UMG & C++

**URL:** <https://forums.unrealengine.com/t/hp-mana-bar-with-umg-c/319091>\
**Category:** UI\
**Tags:** hud, unreal-engine, UI, CPP, question, UMG\
**Created:** [May 19, 2015, 8:54am UTC](https://forums.unrealengine.com/t/hp-mana-bar-with-umg-c/319091 "2015-05-19T08:54:51Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![anonymous\_user\_8e2766aa](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_8e2766aa](https://forums.unrealengine.com/u/anonymous_user_8e2766aa)\
**Post date:** [May 19, 2015, 9:59am UTC](https://forums.unrealengine.com/t/hp-mana-bar-with-umg-c/319091/2 "2015-05-19T09:59:22Z")

</div>

Hello,

You can create Health bar using Slate UI Framework in C++ (SCompoundWidget class in particular).

Slate is a custom and platform independent user interface framework that is designed for effective creation of user interfaces for games and custom tools.  
If you like to learn more about Slate, please go here:

> **[Slate Overview](https://docs.unrealengine.com/5.1/en-US/slate-overview-for-unreal-engine/)**
>
> Overview of the cross-platform Slate UI framework.

For an example of health bar implementation, please go here:

> **[How to do simple Health bar using Slate in C++](https://forums.unrealengine.com/showthread.php?15108-How-to-do-simple-Health-bar-using-Slate-in-C)**
>
> Hi, How can I do a Health bar using Slate in C++? I have checked both ShooterGame and StrategyGame, and they use FCanvasTileItem. But I need it to be in Slate because Canvas is rendered behind the Slate widgets I already have, and I need the health...

In addition, if you like to learn more about buttons creation and drawing in HUD, please go here:

> **[A new, community-hosted Unreal Engine Wiki](https://forums.unrealengine.com/t/a-new-community-hosted-unreal-engine-wiki/141494)**
>
> After over a year in maintenance mode, the official Unreal Engine Wiki is now permanently offline. These resources now live on a new community-run Unreal Engine Community Wiki — https://unrealcommunity.wiki/! You will be able to find content from...

Hope this helped!

Have a great day!

---

_[View the full topic](https://forums.unrealengine.com/t/hp-mana-bar-with-umg-c/319091)._
