r/UnityHelp • u/gasparo8 • May 27 '23
Unity Rainbow Pinwheel Crash
Hi All. Relatively new to Unity, so this could have a simple answer.. My issue arrises after updating a script within visual studio. I will click run button within VS to update the script, return to Unity and click play. After doing this, my mouse turns into the spinning rainbow pinwheel, and unity becomes unresponsive. This will occur probably 1 out of 3 times. I then have to force quit and lose any progress. I'm enjoying game dev as a hobby but this has been really frustrating.. Any ideas?
I'm using a 2020 Apple M1 with 8GB of memory. Unity Editor Version is 2021.3.8f1
Thanks again and apologies if this is a silly question. New to Unity.
2
Upvotes
1
u/NinjaLancer May 29 '23
You don't have to play from Visual studio. I've noticed that Unity (especially 2021) will crash when compiling code while you try to enter play mode.
Try just saving the code in visual studio with CTRL + S (add shift in there to save all scripts if you are feeling fancy) and then tab back to Unity. In the bottom right corner, you will see a spinning icon and the "recompiling script assemblies" prompt might pop up. Then when the spinning thing is gone and Unity starts responding again, try pressing play button in the editor