Search code examples
unity-game-enginecrashfreeze

Unity 2021.3.0f1 freezing everytime i press run


every time I press run to see if my script is running (it's a simple script all it has is a print function) and unity freezes, I have to close it through task manager.it seemed to start happening when I updated unity hub (to 3.1.1) and updated my project to a new version of unity (to 2021.3.0f1). I tried going back to the previous version of unity, but it didn't work, I also tried restarting my computer and it didn't work either. I tried looking for other solutions on forums but they are all from years ago and didn't work


Solution

  • Sounds like you may have an infinite loop running, we would need to see the script in question to know for sure. But if that's not the case, you may just need to rebuild your Library.