Is it possible to set the game window as foreground window in OS?

I’m building an application using Ue4 and I need the Ue4 window to always stay on top.

For example, if I open Chrome the Ue4 window will stay on top.

I’ve searched the documentation and can’t seem to find a solution.

You should be able to do this with the windows handle HWND_TOPMOST and the function SetWindowPos() in WinUser.h. You can see an example of usage in WindowsPlatformMisc.cpp

1 Like