UE4控制台命令


打包后執行想要恆定幀率及顯示幀率可在藍圖中執行:

 

修改分辨率的命令是:,但不能一開始就執行,可能會被配置文件里的設置頂替(可能是,再研究下)

其中w是指窗口,要全屏可改成f。

 

也可以在代碼中修改分辨率,如下:

void AHxVipPlayerManager::SetFullScreenMode(bool bFull)
{
 if (bFull)
 {
  UGameUserSettings::GetGameUserSettings()->SetFullscreenMode(EWindowMode::WindowedFullscreen);//或者EWindowMode::Fullscreen 
 }
 else
 {
  UGameUserSettings::GetGameUserSettings()->SetFullscreenMode(EWindowMode::Windowed);

  FIntPoint ResPoint(2048, 1080);
  UGameUserSettings::GetGameUserSettings()->SetScreenResolution(ResPoint);
 }
 UGameUserSettings::GetGameUserSettings()->ApplyResolutionSettings(true);
}

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM