简体   繁体   中英

Unity Editor hangs on play but build works fine

I have an issue with the Unity editor. My project has been working fine and I hadn't touched it in a while and didn't change any Unity options. Now when I start it, it hangs on play or when I try to close the editor. If I make a build instead, it works as intended.

This project was initially on version 2019.1.9. I have tried it on newer versions to see if it would make a difference. The problem persists on newer versions. There is nothing printed on console, and editor logs don't seem to provide any useful information other than the ordinary. I have tried going back to a working backup version and slowly introduced new elements. It stopped working at some point in a very simple FPS counter file. When I removed said code, the problem persisted. I don't know if it is related but there also seems to be some licensing issues, I am using Pro and I can use some of its feature and it says my license is active, but for some reason my builds have "educational use only" watermark.

按照derHugo的建议,清理文件夹中的所有内容(资产除外)均有效。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM