# Health Bar not Showing in Viewport

**URL:** <https://forums.unrealengine.com/t/health-bar-not-showing-in-viewport/504746>\
**Category:** C++\
**Tags:** health-bar, unreal-engine, UI, Widget, UMG\
**Created:** [March 7, 2022, 3:20pm UTC](https://forums.unrealengine.com/t/health-bar-not-showing-in-viewport/504746 "2022-03-07T15:20:56Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![chrudimer](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/chrudimer/32/918651_2.png) [@chrudimer](https://forums.unrealengine.com/u/chrudimer)\
**Post date:** [March 7, 2022, 4:48pm UTC](https://forums.unrealengine.com/t/health-bar-not-showing-in-viewport/504746/2 "2022-03-07T16:48:55Z")

</div>

Hi, I don’t see that you create the widget and add it to viewport. You could look at the second code example of the first post here [[TUTORIAL/SNIPPET] Creating a UMG Widget in C++, and delegate example](https://forums.unrealengine.com/t/tutorial-snippet-creating-a-umg-widget-in-c-and-delegate-example/15903)

---

_[View the full topic](https://forums.unrealengine.com/t/health-bar-not-showing-in-viewport/504746)._
