Hello Unity Developers,
Recently, I faced few issues with Unity Editor and I hope sharing it will help.
What was I trying to do? Scenario?
- Upgrading to Unity 2017.2 & Unity 2017.3
- I was trying to upgrade one of my project from Unity 2017.1.2 version to Unity 2017.2.1f1. On doing so, usually unity automatically updates the obsolete scripts to support new APIs. Once it got updated, I tried to play the game in editor and it worked.
Then, what was the problem?
- While building the project to UWP application, there were some compile errors where Unity.VR need to be updated to Unity.XR. I fixed those errors, quit unity and tried building again.
- Wait, Why did I quit Unity and then built it again? Its because unity has this weird issue, when there are compiler errors. Though I had fixed the errors, on building it again, the errors will not go away. We have to quit unity and then build it, TADA, the error will go away.
- Now coming back to other issues I faced, when I tried building it again after fixing all obsolete APIs, I had the following error with no proper information:
- I also got this error "internal error: Recursion detected while updating scripts" as mentioned here.
How did I fix it?
- I tried updating to other patch releases, windows OS, deleted some files(which I was thinking that deleting them would fix the issue) and none worked :(
- Suddenly the developer within me woke up and checked the "Editor.log" file in Unity's AppData. And there I could find some errors which were not displayed in Unity Console window. Fixing those errors, I was able to build the project for UWP.
PS: If you all usually look at editor logs, then I am that one lazy developer who was dependent on Editor console window!
Comments
Post a Comment