# Any way to update HUD through setting it in GameMode

**URL:** <https://forums.unrealengine.com/t/any-way-to-update-hud-through-setting-it-in-gamemode/2158824>\
**Category:** UI\
**Tags:** unreal-engine, question, Blueprint\
**Created:** [November 29, 2024, 10:55pm UTC](https://forums.unrealengine.com/t/any-way-to-update-hud-through-setting-it-in-gamemode/2158824 "2024-11-29T22:55:16Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![onetiredkayla](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@onetiredkayla](https://forums.unrealengine.com/u/onetiredkayla)\
**Post date:** [November 29, 2024, 10:55pm UTC](https://forums.unrealengine.com/t/any-way-to-update-hud-through-setting-it-in-gamemode/2158824/1 "2024-11-29T22:55:16Z")

</div>

Hi! I’m trying to update the HUD Class for my Gamemode. Currently I have it so that on Key Press, it triggers this function below, which cycles through my Interfaces and sets the next in line to be the HUD Class. This all runs through fine, but the HUD does not visually update. Am I missing a function call or something? Or will it just not work like this.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/c/4/5c4889ba9f5f155e3c9cb11565ce942e8f70f15f.png)

---

<div class="post-metadata">

**Author:** ![silnarm](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/silnarm/32/955303_2.png) [@silnarm](https://forums.unrealengine.com/u/silnarm)\
**Post date:** [November 29, 2024, 11:13pm UTC](https://forums.unrealengine.com/t/any-way-to-update-hud-through-setting-it-in-gamemode/2158824/2 "2024-11-29T23:13:01Z")

</div>

> [@onetiredkayla](#):
>
> Am I missing a function call or something? Or will it just not work like this.

The latter 🙂

You are changing the HUD Class, but this will only result in that class being used for players who join the game after that, and then that is HUD they will have, even after triggering this again.

Don’t change the GameMode’s HUD Class, if this really needs to be done in the GameMode then this node should work:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/e/c/3ecb3e6367799a915f8d0c4f5e4284c02cd0a072.png)

Depending on the situation though, this is probably best handled client side (does the server care what HUD the player is currently using?).

---

<div class="post-metadata">

**Author:** ![onetiredkayla](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@onetiredkayla](https://forums.unrealengine.com/u/onetiredkayla)\
**Post date:** [November 30, 2024, 12:35am UTC](https://forums.unrealengine.com/t/any-way-to-update-hud-through-setting-it-in-gamemode/2158824/3 "2024-11-30T00:35:21Z")

</div>

Yes thank you this is perfect! This is simply for debugging the interfaces we are making in GameFace so it will never be used by a player.

---

<div class="post-metadata">

**Author:** ![system](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/713c9d3f58553f0de89543d76a8a3a2779dc9fa4.png) [@system](https://forums.unrealengine.com/u/system)\
**Post date:** [December 30, 2024, 12:35am UTC](https://forums.unrealengine.com/t/any-way-to-update-hud-through-setting-it-in-gamemode/2158824/4 "2024-12-30T00:35:57Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
