UE4中窗口模式切换

您所在的位置:网站首页 全屏游戏怎么窗口模式切换 UE4中窗口模式切换

UE4中窗口模式切换

2024-07-17 21:44| 来源: 网络整理| 查看: 265

1、设置游戏启动的默认窗口模式

       设置默认模式可通过修改配置文件的方式,配置文件名DefaultGameUserSettings.ini,位于Config目录下,如果没有该文件可新建一个,配置项如下

[/Script/Engine.GameUserSettings] bUseVSync=False ResolutionSizeX=1280 ResolutionSizeY=720 LastUserConfirmedResolutionSizeX=1280 LastUserConfirmedResolutionSizeY=720 WindowPosX=-1 WindowPosY=-1 bUseDesktopResolutionForFullscreen=True FullscreenMode=2 LastConfirmedFullscreenMode=2

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

UENUM(BlueprintType) namespace EWindowMode { enum Type { /** The window is in true fullscreen mode */ Fullscreen, /** The window has no border and takes up the entire area of the screen */ WindowedFullscreen, /** The window has a border and may not take up the entire screen area */


【本文地址】


今日新闻


推荐新闻


CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3