# How do i keep the game Window in Front of other things?

**URL:** <https://forums.unrealengine.com/t/how-do-i-keep-the-game-window-in-front-of-other-things/469248>\
**Category:** Platform & Builds\
**Tags:** window, unreal-engine, question\
**Created:** [August 5, 2020, 1:02pm UTC](https://forums.unrealengine.com/t/how-do-i-keep-the-game-window-in-front-of-other-things/469248 "2020-08-05T13:02:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![zefix89](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@zefix89](https://forums.unrealengine.com/u/zefix89)\
**Post date:** [August 5, 2020, 1:02pm UTC](https://forums.unrealengine.com/t/how-do-i-keep-the-game-window-in-front-of-other-things/469248/1 "2020-08-05T13:02:39Z")

</div>

Hi,

i couldnt find anything so i hope you guys and girls can help^^ sry english is not my best

I try to make a little windowed (lets call it game…) that should in best always be in front of other things like the browser ect.

Or at least keep the sound playing while the game window is not focused.

Hope you can help thanks

---

<div class="post-metadata">

**Author:** ![Sargonius](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Sargonius](https://forums.unrealengine.com/u/Sargonius)\
**Post date:** [August 21, 2022, 9:05am UTC](https://forums.unrealengine.com/t/how-do-i-keep-the-game-window-in-front-of-other-things/469248/2 "2022-08-21T09:05:02Z")

</div>

I know this is an old post, but I’ve stumbled upon it several times while trying to find the solution to this problem.

```auto
#include "Windows/AllowWindowsPlatformTypes.h"

// Call this somewhere in the initialization. I've done it in GameMode->BeginPlay
SetWindowPos( GetActiveWindow(), HWND_TOPMOST, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE );

```

---

<div class="post-metadata">

**Author:** ![Monoody](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Monoody](https://forums.unrealengine.com/u/Monoody)\
**Post date:** [May 22, 2025, 8:03am UTC](https://forums.unrealengine.com/t/how-do-i-keep-the-game-window-in-front-of-other-things/469248/3 "2025-05-22T08:03:27Z")

</div>

Try this [plugins](https://www.fab.com/listings/1412f607-ae9b-4144-b42a-da38716e0653), it work! [Topmost - Keep Editor/Game window always on top | Fab](https://www.fab.com/listings/1412f607-ae9b-4144-b42a-da38716e0653)
