My Unity project keeps closing/crashing when I try to run it, even tho i can still freely edit, add scripts and add/remove GameObjects. Can someone help me with this? I really can’t work like this.
Check the editor.log or post it here.
You can also use the debugger or logs to see which scripts run which methods before it fails.
If you know where it fails, we need to see that script. Could be anything. An infinite loop would not normally close the editor but just freeze indefinitely. And it’s generally not easy to force close Unity without the red exclamation mark crash reporter either, so this doesn’t look like something you could provoke with a “normal” script.
Therefore, check that you can enter playmode in a newly created project. If that also crashes it would indicate some general stability issue when entering playmode (ie game runtime rendering). If that is the case, try updating the graphics driver.
I found the issue. Turns out the game uses Discord’s Rich Presence API and it looks like it just crashes for me since the game can’t connect to my Discord account. I get that it doesn’t connect, but I’m confused how it crashes the project