I would like to disable this feature, is there an option somewhere?
I regularly force kill Unity and it causes time wasting issues for me because it delays the long project load time (e.g. I click to open the project and leve the room, only to come back and see that the loadup hasn’t started yet due to this dialogue). We don’t use a scene-based workflow, any intentional scene changes I make are managed by version control.
If there is no option, perhaps I could be given some pointers on where to find the backup folder? I’m thinking I could write a script to delete them before unity hub opens.
Thanks in advance!
I think that will yield great results on google, or perhaps your favorite chatbot.
To avoid the message, I think it suffices to delete the Temp/ folder. This is where Unity saves its “lock” file indicating that the process didn’t shutdown properly.
Don’t make that a habit! Every time you force kill, you might interrupt the serialization of data and leave corrupt assets or artifacts behind, potentially causing inexplicable issues thereafter.
If long loading times are an issue, investigate those. Every project that had such issues had just one or two really problematic things that caused most of the slowdowns. A significant speedup might just be a few clicks away, once you understand why its slow and what can be done about it.
To avoid the message, I think it suffices to delete the Temp/ folder.
Thanks, I’ll try the Temp deletion.
Don’t make that a habit! Every time you force kill, you might interrupt the serialization of data and leave corrupt assets or artifacts behind, potentially causing inexplicable issues thereafter.
Sometimes Unity just freezes, or it doesn’t exit when I shut down my Windows. It’s not something that happens when files are being written. I just don’t want a dialogue that blocks startup. If it prompted after the editor loaded it wouldn’t be an issue.
If long loading times are an issue, investigate those. Every project that had such issues had just one or two really problematic things that caused most of the slowdowns. A significant speedup might just be a few clicks away, once you understand why its slow and what can be done about it.
It’s about ~25 seconds just loading, obviously longer if assets need to be imported. Doesn’t seem unusual for a project of this size.
I want to disable this feature too.
It’s never been useful, but it’s gotten in the way plenty of times (probably about 30 times).
I just set it up, it’s pretty easy.
Create e.g. %USERPROFILE%\Scripts\unity-hub-no-recover.bat
set "proj=C:\Path\To\Your\Project\Temp\__Backupscenes"
if exist %proj% rmdir /S /Q %proj%
start "" "%ProgramFiles%\Unity Hub\Unity Hub.exe"
Then, I wanted to replace the link on the Win11 taskbar, so I went to %USERPROFILE%\AppData\Roaming\Microsoft\Internet Explorer\Quick Launch\User Pinned\TaskBar in explorer
Right click the unity hub link, properties, then set its target to your BAT script:
Unfortunately I don’t think you can hook into the actual launch from hub. You can add command line arguments, but the dialogue comes up way before editor launches (which is the whole issue in the first place). So you’ll need to add an rmdir line for each project you want to wipe.
Seems to be working nicely!
this popup is really annoying. I also use version control so I don’t care.
the language is also so weirdly imprecise. “your scene MIGHT have been backed up”. well did it or not?
it makes more sense to have a user preference saved for whether they want this or not.