最近在玩ml-agents,发现训练的时候点击别的窗口,Unity Editor就挂起不接着运行了。google了一下发现可以通过点击Edit->Project Settings->Player->Resolution and Presentation,然后勾选Run In Background即可解决该问题:
![](https://s2.loli.net/2023/06/17/nwlfHgrEsZNjGbd.jpg)
最近在玩ml-agents,发现训练的时候点击别的窗口,Unity Editor就挂起不接着运行了。google了一下发现可以通过点击Edit->Project Settings->Player->Resolution and Presentation,然后勾选Run In Background即可解决该问题: