Preventing game window minimization
Some middleware engines and layering systems (for example, Unity and Simple DirectMedia Layer (SDL)) automatically minimize the game’s full-screen window when foreground focus is lost to the TCUI dialog. To prevent this behavior, the Gaming Runtime uses CBTProc to deny any requests to minimize the game window. The Gaming Runtime only applies this pattern when it detects that overlays can render over the full-screen DirectX game window and the TCUI dialog is visible. In addition, the Gaming Runtime intercepts and modifies any style-change window messages prior to showing TCUI dialogs to prevent the game window from rendering a border or a title bar. Any styles in the WS_OVERLAPPEDWINDOW group aren’t applied on a style change unless they previously existed in the old style. This modification is only implemented during the lifetime of the TCUI dialog.DirectX 9 considerations with TCUI dialogs
Although the Gaming Runtime prevents DirectX 9 games from minimizing as described in Preventing game window minimization (earlier in this topic), they still lose foreground focus when a TCUI dialog appears. Your game should handle this focus loss gracefully, in the exact same way that it would respond to a player minimizing the game window while running full screen.Unity considerations with TCUI dialogs
SetApplication.runInBackground to true for any game that expects to display a TCUI dialog.