Hello! TL;DR below. I’m having an issue with the engine when working on my latest project. I’ll describe it as best as I can, but if anybody will be willing to help, please provide step by step solution as I’m not very much technical ![]()
I’m making a mobile game. I’ve used unity 2019.4.12f1, connected (after hours of trying) unity remote 5 app to test my game. I’ve unchecked android SDK path and typed it myself and it finally worked.
I’ve downloaded Joystick Pack from the asset store and then NavMeshComponents from git to generate navMesh during runtime (LocalNavMeshBuilder.cs and NavMeshSourceTag.cs). I’ve also changed the renderer to URP to use the graph shader I made. For the coding I’ve used Visual Studio Community 2019 [16.8.4]. I’m using mostly void Start and Update methods.
Yesterday I started to notice a slowdown when updating my code and switching back to unity and when running the game in the editor. It got to the point where I have to wait about 4 minutes for a single line of code to be added into a script and then 4 minutes more to test and tweak it. It’s unbearable and I can’t work with it anymore. I’ve also noticed - from my limited knowledge - that starting the game was very CPU heavy (then it settled) and unity uses almost all of my RAM (my system runs on 16GB). It froze dead a couple of times already and I lost changes made from the last save.
I’ve started to think that it maybe had to do with the assets I’ve downloaded, so I made a backup and deleted them from the project. It didn’t help. Next, I’ve upgraded unity to the latest version I believe (2020.3.0f1) and it didn’t help as well. I’ve now downloaded Visual Studio Code in hope of any help, but haven’t used it yet.
Changing Editor → Enter Play Mode Options helped a bit with testing the game, but the issue with scripting is still there and I can’t solve the problem on my own at the moment. I saw some topics about similar issues, however I found no use of them so far. Maybe some solutions were not obvious and I didn’t knew how to apply them.
.
TL;DR: unity freezes for minutes when making changes in Visual Studio and when entering play mode. I need a step by step solution so I know how to apply the solution I might not understand.
Messages it freezes on: reload script assemblies and restore managed references

