Help! My computer crashed while coding in Unity and now I’m stuck!

0
4
Asked By CodeWhiz007 On

I was following a Unity tutorial, working on a simple script to change an object's velocity when the space key is pressed. After a few trials and errors, my computer started lagging, and then suddenly the screen went black. I had to restart by holding the power button. When I reopened Unity, it launched in safe mode, but I found an error in my script about not recognizing the "`" character. Each time I tried to open the script, I got another error, and it wouldn't load. I followed some advice to delete the .vs, library, and obj folders, but now I can open Unity, and it tries to open the script in VSCode, which turns out to be blank and labeled as a binary file. The tutorial didn't cover this issue at all. Any guidance would be really appreciated!

2 Answers

Answered By TechWizard202 On

It sounds like a mess there! First step you want to try is starting a new project to see if Unity behaves normally again. If that works, great! If not, consider completely uninstalling and reinstalling Unity. Also, what are your computer specs? Game development can sometimes be pretty demanding on lower-end machines.

Answered By ByteBuster42 On

When your engine acts up after a crash, typically the best move is to reinstall it and clean those project files you mentioned. On another note, your computer shouldn't go haywire over a basic script, so it's worth checking if your system is overheating or running low on memory. That error code you posted is more for your personal troubleshooting on Google, it’s not super helpful for us troubleshooting here.

FriendlyCoder -

Let's keep it constructive, folks! It's tough for beginners, so support goes a long way.

OldSchoolDev -

Yeah, might be an old machine running the latest Unity, which can definitely cause performance issues!

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.