# HUD question

**URL:** <https://forums.unrealengine.com/t/hud-question/6094>\
**Category:** Blueprint\
**Tags:** unreal-engine\
**Created:** [June 15, 2014, 8:22pm UTC](https://forums.unrealengine.com/t/hud-question/6094 "2014-06-15T20:22:58Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_07bfbbc5](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_07bfbbc5](https://forums.unrealengine.com/u/anonymous_user_07bfbbc5)\
**Post date:** [June 15, 2014, 8:22pm UTC](https://forums.unrealengine.com/t/hud-question/6094/1 "2014-06-15T20:22:58Z")

</div>

I have two huds BP. Journal and Inventory. How i can change from BP, player HUD class ? Journal / Inventory or other by presed key.

---

<div class="post-metadata">

**Author:** ![jwatte](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jwatte/32/744941_2.png) [@jwatte](https://forums.unrealengine.com/u/jwatte)\
**Post date:** [June 15, 2014, 10:50pm UTC](https://forums.unrealengine.com/t/hud-question/6094/2 "2014-06-15T22:50:53Z")

</div>

Easiest is to do a Branch on the state of a boolean variable in your HUD controller. Make it draw one thing when the boolean is on, and another thing when it’s off. Then toggle this boolean with a key input.

The Vehicle Template HUD does this, to support pause menu versus driving information.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_07bfbbc5](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_07bfbbc5](https://forums.unrealengine.com/u/anonymous_user_07bfbbc5)\
**Post date:** [June 16, 2014, 9:22am UTC](https://forums.unrealengine.com/t/hud-question/6094/3 "2014-06-16T09:22:14Z")

</div>

Easiest is to do a Branch on the state of a boolean variable in your HUD controller. Make it draw one thing when the boolean is on, and another thing when it’s off. Then toggle this boolean with a key input.

The Vehicle Template HUD does this, to support pause menu versus driving information.  
[/QUOTE]

Thx. But i want to know how i can change HUD class from BP or it’s not posibile. When i changed GameMode=\>SetHUDClass , playerController =\> GetHUD - returned default HUD.  
(I knows what i can change HUD from WorldSettings)

---

<div class="post-metadata">

**Author:** ![AnadinX](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/anadinx/32/1008648_2.png) [@AnadinX](https://forums.unrealengine.com/u/AnadinX)\
**Post date:** [June 16, 2014, 12:37pm UTC](https://forums.unrealengine.com/t/hud-question/6094/4 "2014-06-16T12:37:08Z")

</div>

I would create a BP\_HUDManager probably as an Actor, and have it spawn BP\_Journal and BP\_Inventory as and when you need them. BUT that is based on what I would do in Unity, isn’t the HUD somehow related to the GameMode? Maybe you can only have one HUD at a time.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_07bfbbc5](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_07bfbbc5](https://forums.unrealengine.com/u/anonymous_user_07bfbbc5)\
**Post date:** [June 16, 2014, 12:45pm UTC](https://forums.unrealengine.com/t/hud-question/6094/5 "2014-06-16T12:45:09Z")

</div>

> [@Anadin;77336](#):
>
> Maybe you can only have one HUD at a time.

Maybe i can’t change HUD in runtime. All examples works with switch in MAIN HUD.
