【发布时间】:2017-08-01 18:01:39
【问题描述】:
您好,我是 Unity 的新手,我在玩游戏以适应一切。
我一直在做一些测试,到目前为止一切正常,但我偶然发现了一些我无法找到下降解决方案的东西。
在构建游戏时,我在侧面有黑色边框。我怎样才能摆脱它们,让游戏真正全屏?
我禁用了显示分辨率框并在窗口变为“Windows 全屏”时进行了硬编码,但现在我有这些讨厌的黑色边框。
谁能把我推向正确的方向?
谢谢。
这是我尝试的代码。但没有成功。
Debug.Log(Screen.currentResolution); // check if i find the native screen resolution. test passed
Screen.SetResolution(Screen.currentResolution.width, Screen.currentResolution.height, true); //getting black borders. set test failed
【问题讨论】:
标签: windows unity3d fullscreen