游戏窗口最大化、最小化控制

显示窗口、最大化

UGameEngine* gameEngine =Cast(GEngine);
 
if (gameEngine)
{
TSharedPtr windowPtr =gameEngine->GameViewportWindow.Pin();
SWindow *window = windowPtr.Get();
 
if (window)
{
//window->Maximize();
window->BringToFront(true);
        window->ShowWindow();            
}
}


最小化

UGameEngine* gameEngine =Cast(GEngine);
 
if (gameEngine)
{
TSharedPtr windowPtr =gameEngine->GameViewportWindow.Pin();
SWindow *window = windowPtr.Get();
 
if (window)
{
window->Minimize();
}
}


你可能感兴趣的:(游戏窗口最大化、最小化控制)