Infinite reimporting loop

Whenever I exit play mode or edit a script the editor gets stuck in an infinite reimport loop even though nothing has changed.

Oddly this only started happening recently.

Things i’ve tried:
updated unity
turned off virus protection
deleted library folder
reimport all
used a different drive to install unity to

here’s the case number:
CASE IN-84326

Turns out it was adding a scripting define in a build profile which was causing the infinite loop.
Removing the build profile fixed it.

1 Like

I’m running into this now using version 6000.0.39. Does that mean including scripting defines in build profiles is just broken? Having a solution that just sidesteps the problem isn’t super helpful considering how important defines can be when setting up different build pipelines.

I’m trying to create build profiles for multiple Android targets, mobile and VR. The only difference between them is scripting defines and which scenes are included and yeah switching them causes the editor to go into an infinite loop of importing assets. It doesn’t even make sense as I’m going from Android to Android so it shouldn’t be reimporting all that stuff at all.

Hi, since the original ticket was closed, could you please submit this as a report from within the Unity Editor by navigating to “Help → Report a Bug…”, and attach a reproduction project?