让unity程序后台运行


Unity的默认项目设定是"只在窗口被聚焦时进行游戏处理",失去焦点时处理停止。    写了个工具,需要处理很久的数据,估计30分钟以上。 开着很久都没有反应,才发现没有支持后台运行,导致浪费了很多时间。  

File > Build Settings... > Player > Resolution and Presentation > Run In Background* √  设置选中。

*这个设置只在webgl和stand 起作用,ios不起作用。