If I don’t save a script I am writing on for more than a few minutes, a copy of it gets created with a long date and time string after it, making loads of errors when it compiles. What’s doing this, Unity or Visual Studio? And how can I turn it off from happening?
What are you using to edit files?
This sounds like it could be a temp file created by some editor while editing for history purposes.
I don’t know of many IDE’s that do it… but I know that OpenOffice does.
Visual Studio 2017 (community edition). If you’re sure it’s definitely not something Unity 5 beta does, then I shall check out the VS settings. Didn’t want to change anything without knowing what I was doing.
I haven’t used the beta yet, so there MIGHT be something in there that is doing it. But I don’t suspect Unity would have put in something that could break its own build process… but then again, it’s a beta, so who knows.
As for Visual Studio. The base version of it shouldn’t do this, I’ve never come across it in the 12 or so years I’ve used Visual Studio. 2017 ‘may’ have added something? It COULD be a plugin, if you use any plugins.
Its sort of hard to tell what could actually be causing it from my perspective as I’m not familiar with your environment at all. Good luck, hopefully someone else has personally seen this.
Sounds as if it was something like an auto-save mechanism for recovery that (unfortunately) saves in the folder in which the script has been created. oO
Never encountered it, but I’m not using VS 2017 either.
Check Tools->Options, there’s usually an entry for auto-recover and similar functionality. Perhaps the settings are messed up.
Oh yeah, that’s what it was… I’d have liked to keep the autorecover turned on but choose a different folder that Unity doesn’t look in.
NO! It wasn’t. I turned that off but it still happens. Must be something new in Unity
Later: OK… I think it was my sync to my local MyCloud stopping it saving properly. It’s not happened since I paused sync.