17

I'm Using Unity version 2020.3.32f1 & Rider as Editor. Whenever I make any changes in scripts, even small changes, Unity script assemblies take too much of time to compile and load. Sometimes it freezes Unity entirely and in the Task Manager I can see "application not responding" for the Unity session.

Reload Scripts Assemblies

Does anyone know how I can solve this issue?

Prasad Pakhare
  • 237
  • 1
  • 2
  • 8
  • There are some things to try further down this thread. Especially if you use Rider. https://forum.unity.com/threads/constant-incessant-reload-script-assemblies-program-crashing-hanging.1057568/ But it's a very common issue that seems to get worse with newer versions. – Bart May 04 '22 at 11:53

7 Answers7

16

Disable Domain Reloading. To disable Domain Reloading:

  1. Go to Edit > Project Settings > Editor
  2. Make sure Enter Play Mode Options is enabled.
  3. Disable Reload Domain

source https://docs.unity3d.com/Manual/DomainReloading.html

Mario
  • 169
  • 2
7
  1. Edit > Project Settings > Editor > Check Enter Play Mode Options

  2. Uncheck reload domain & reload scene

That worked for me .. unity 2021.3.4f1

4

After so much of research, I got one solution which worked for me , in Unity Package manager , Search for Rider & got Update for rider. After Updating Rider version from unity package manager. my Scripts reloading issue got fixed. Rider update in Unity package manager

Prasad Pakhare
  • 237
  • 1
  • 2
  • 8
1

The Windows version of UnityEditor also has this problem.

Weirdly, if you have this problem, just save any file in your Unity project folder without changing anything and the progress bar will start progressing.

ippei
  • 11
  • 1
  • Your answer could be improved with additional supporting information. Please [edit] to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers [in the help center](/help/how-to-answer). – Community Aug 30 '22 at 11:31
  • This answer worked for me when using VS Code. – fenix.shadow Sep 07 '22 at 12:26
0

Not being logged in in the Unity editor (upper left corner) certainly seems to increase the chances of this issue happening.

If you open the Package Manager without being logged in you get some errors in the console. I suspect this is related but in the script reload case it just hangs.

jool
  • 1,491
  • 12
  • 14
0

Restart Unity Editor

Just restarting Unity Editor helped a lot in my case (had Editor open for few days). Reloading assemblies got much faster, from ~40 down to ~15seconds. Now I restart every few hours ¯\(ツ)

Credits: Found this simple idea on this site.

Disconnect Visual Studio

Another thing that seems to help is not having connected Visual Studio. Connect it only when you need it for debugging, etc.

dankal444
  • 3,172
  • 1
  • 23
  • 35
-1

Open Window->Package Manager. Select Packages: In Project to see the packages currently installed. Remove everything you are not using.