- Unity 2020游戏开发快速上手
- 吴雁涛 叶东海 赵杰
- 264字
- 2025-02-22 08:22:03
2.4 生成Windows程序
1.玩家设置
生成Windows程序在Player Settings中经常使用的是与屏幕大小有关的设置,如图2-17所示。

图2-17
在Resolution and Presentation(分辨率和演示)标签下,Fullscreen Mode(全屏模式)可以设置程序运行后是否全屏以及分辨率大小。
Run In Background(后台运行)是指当程序不是当前运行状态,例如被最小化或者切换到其他程序以后,是否还在运行。
Resizable Window(可调整大小的窗口)和Force Single Instance(强制单实例)也经常会用到。
2.生成Windows程序
在Build Settings窗口,单击Build(生成)按钮,在弹出窗口中选择一个目录,如图2-18所示。
然后就会自动在目录下生成一组文件及文件夹,运行以Product Name(产品名称)开头的“.exe”文件即可,如图2-19所示。

图2-18

图2-19