Unity 2017.1f1 Freezes while compiling scripts

My Unity started to freeze every time i compile scripts few days ago. The loading “circle” on bottom right corner just freezes and so does Unity, so i have to stop the process from task manager. Restarting Unity obviously didn’t work and i also tried to restart my pc. I’m using Photon on my project and i have heard that some people had same issue with photon but their solutions didnt work for me.

We are currently also experiencing this problem. Could you tell me which solutions you already have tried?

I have been facing the same problem for a long time, with unity 2017.x (not only a specific version) and unity 2018.1.x. I 'm not using Photon. Have you found any solution?

You're welcome :)

3 Answers

3

I am having something similar happening. I …think… it is because I have a script which has many,many errors in it. I am working on writing a method which has hundreds of lines in it with the predominant error being an invalid,incorrect calls(hundreds of such error calls) to a method in the same class. If I go back and comment out the entire contents of the script then the freeze on “compiling scripts” goes away. I speculate the reason it is freezing is either 1)totally cannot cope with that many errors or 2)there’s a combinatorial explosion in the amount of processing required to compile.it might never finish compiling,i ran out of patience. the editor also will not shut down normally.

Why did you need to normalize? And this variable angle, what calculation does it return?

My solution:

Close all programs when compilating, and disable firewall, the last is very important!

Normalize sets the length of the vector to 1. We do this because we don’t care about it’s length, we care about its direction. If we don’t set the length to 1, we may get unexpected behavior. The angle variable is the angle the enemy needs to rotate to in degrees.

Quick fix if you get stuck is just to reimport the script(s) you’ve changed.

What subjects do you recommend me to study? I don't understand anything about math and physics.