如何删除 Unity 制作的游戏中的 window 帧?
How to remove window frame in game made in Unity?
所以我所有的问题都在标题中说明了。当游戏启动并且(例如)在配置 Window 中选择 windowed 模式时,我如何删除 window 帧(其中 "minimise" 和 "close" 按钮位于)?
P.S。也许在我问之前有解决方案,但我找不到答案。
更新为Comment/Answer
您可以在 Resolution and Presentation
部分下的 Player Settings
中将其更改为 Exclusive Fullscreen
。
Unity 有一些内置的 Unity Standalone Player command line arguments。其中之一是
-popupwindow
: Create the window as a a pop-up window, without a frame.
为您的 standalone_app.exe
文件创建一个新的 link 并将参数 -popupwindow
添加到目标路径。
或者您可以使用 this post:
中的方法
打开 Windows Editor
应用程序(或任何文本编辑器)并执行
/path/to/your/built/app.exe -popupwindow
并将其保存为 .bat
文件。如果您现在双击它打开时没有 Window 栏。
您稍后可以使用例如将其转换为 exe。 BatToExe
所以我所有的问题都在标题中说明了。当游戏启动并且(例如)在配置 Window 中选择 windowed 模式时,我如何删除 window 帧(其中 "minimise" 和 "close" 按钮位于)? P.S。也许在我问之前有解决方案,但我找不到答案。
更新为Comment/Answer
您可以在 Resolution and Presentation
部分下的 Player Settings
中将其更改为 Exclusive Fullscreen
。
Unity 有一些内置的 Unity Standalone Player command line arguments。其中之一是
-popupwindow
: Create the window as a a pop-up window, without a frame.
为您的 standalone_app.exe
文件创建一个新的 link 并将参数 -popupwindow
添加到目标路径。
或者您可以使用 this post:
中的方法打开 Windows Editor
应用程序(或任何文本编辑器)并执行
/path/to/your/built/app.exe -popupwindow
并将其保存为 .bat
文件。如果您现在双击它打开时没有 Window 栏。
您稍后可以使用例如将其转换为 exe。 BatToExe