# \[SOLVED\]How to add ui to C++ pawn/character

**URL:** <https://forums.unrealengine.com/t/solved-how-to-add-ui-to-c-pawn-character/423288>\
**Category:** UI\
**Tags:** User-Interface, unreal-engine, UI, Widget, Blueprint, CPP, question\
**Created:** [April 22, 2018, 1:03pm UTC](https://forums.unrealengine.com/t/solved-how-to-add-ui-to-c-pawn-character/423288 "2018-04-22T13:03:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![gremlin151](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@gremlin151](https://forums.unrealengine.com/u/gremlin151)\
**Post date:** [April 22, 2018, 1:03pm UTC](https://forums.unrealengine.com/t/solved-how-to-add-ui-to-c-pawn-character/423288/1 "2018-04-22T13:03:50Z")

</div>

Hello

I have some issues with user interface. I want to create a progress bar in blueprint and add it to viewport. My ball(player) is a C++ class, not blueprint. I tried to create blueprint class and reparent with this C++ class and add there my interface(create widget and add to viewport) but i don’t see anything.

Someone can help me?

**[solved]** Just create a new BP class and set HUD a parent and there put instructions to add UI to viewport and change project settings HUD → your hud’s bp class. If UI doesn’t appear, just save your project and reload engine and your project.
