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

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

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

#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 );
2 Likes