UE4 打包前分辨率、全屏等各种设置

修改打包设置有两种方法:

方法1

发布后修改,这个需要首先运行一下程序

然后看程序目录C:\Users\shenmifangke\Desktop\项目导出文件夹\WindowsNoEditor\项目名称\Saved\Config\WindowsNoEditor

这个文件夹中会有一个GameUserSettings.ini。按照下面进行修改即可。

 

简单说下,如果不想搞懂直接修改的话 就是直接把mode结尾的都设置成2

1920的就是分辨率了,可以自己设置,不过超出电脑分辨率的它会自动忽视。

修改FullscreenMode的值可设置为全屏或窗口模式,0表示全屏模式,1表示窗口全屏模式,2表示窗口模式

[/Script/Engine.GameUserSettings]
bUseVSync=False
ResolutionSizeX=1920
ResolutionSizeY=1080
LastUserConfirmedResolutionSizeX=1920
LastUserConfirmedResolutionSizeY=1080
WindowPosX=-1
WindowPosY=-1
FullscreenMode=2
LastConfirmedFullscreenMode=2
PreferredFullscreenMode=2
AudioQualityLevel=0
FrameRateLimit=0.000000  
DesiredScreenWidth=1920 
DesiredScreenHeight=1080
bUseDesiredScreenHeight=false //如果默认全屏,此项建议设为true。否则,当设定全屏分辨率大于显示器支持的分辨率时会出现全屏时超过一个屏幕大小的情况(仅测试了双屏显示器的情况)
LastRecommendedScreenWidth=0.000000
LastRecommendedScreenHeight=0.000000
Version=5
[ScalabilityGroups]
sg.ResolutionQuality=100
sg.ViewDistanceQuality=3
sg.AntiAliasingquality=3
sg.ShadowQuality=3
sg.postprocessquality=3
sg.TextureQuality=3
sg.EffectsQuality=3

 

 

全屏配置的说明:

This should default to fullscreen, using the native desktop resolution.

Note, that the double slashes are comments, and you can also set a custom resolution by uncommenting those lines, and setting bUseDesktopResolutionForFullscreen=False.

There are multiple fullscreen modes:

0 sets the game to true fullscreen.

1 sets the game to windowed fullscreen.

2 sets the game to windowed mode.

Also, for some reason when launching a standalone game from the editor, it completely seems to ignore the resolution values and just sets the resolution to some default. The packaged game should still use the correct resolution however.

 

方法2

导出前就修改好

C:\Users\shenmifangke\Documents\Unreal Projects\项目文件夹\Config
新建一个DefaultGameUserSettings.ini文件

里面填上上面的配置,发布以后就会自动成为上面配置的分辨率了

 

The DefaultGameUserSettings.ini file is only there to set scalability if it is the user's first time launching the game.

It's definitely good to set the default ini files, but if you ever changed your scalability settings after your first launch, you need to either clear your "Saved" folder each time or modify [ProjectName]\Saved\Config\Windows\GameUserSettings.ini instead.

It's usually a good practice to clear the saved folder (or rename it) if you want to test out a "first launch". In a "first launch" scenario, your DefaultGameUserSettings.ini will be used to create the GameUserSettings.ini. Any further launches no longer reference DefaultGameUserSettings, unless you clear the "Saved" folder.

 

 

参考:

[Tutorial] Creating an External Game Launcher [Settings Adjuster]

 

posted @ 2018-01-18 19:47  MATU  阅读(18550)  评论(0编辑  收藏  举报