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);
}

 

posted @ 2018-06-22 10:58  sev  阅读(8042)  评论(0编辑  收藏  举报