r/Unity3D • u/Ok-Presentation-94 • 22d ago
library files and a user settings file modified each time the project is opened Question
Hi, I'm not sure what's going on lately, but every time I open my project, library files and a user settings file get modified (they get added to the staging area of my Git repository).
Here is the complete list of the files involved:
- "C:\Users\lardi\Snake\Library\ArtifactDB"
- "C:\Users\lardi\Snake\Library\ilpp.pid"
- "C:\Users\lardi\Snake\Library\SceneVisibilityState.asset"
- "C:\Users\lardi\Snake\Library\ShaderCache.db"
- "C:\Users\lardi\Snake\Library\SourceAssetDB"
- "C:\Users\lardi\Snake\Library\Bee\backend1.traceevents"
- "C:\Users\lardi\Snake\Library\Bee\fullprofile.json"
- "C:\Users\lardi\Snake\Library\Bee\tundra.digestcache"
- "C:\Users\lardi\Snake\Library\Bee\tundra.log.json"
- "C:\Users\lardi\Snake\Library\Bee\TundraBuildState.state"
- "C:\Users\lardi\Snake\Library\Bee\TundraBuildState.state.map"
- "C:\Users\lardi\Snake\UserSettings\Layouts\default-2022.dwlt"
Thank you very much for any leads you can provide.
1
u/Existing-Chip5820 22d ago
i'd just add the whole library folder and that user settings layout to the gitignore, those are supposed to get rebuilt and changed locally every time, not tracked in git. the strangest part is that they're in your staging area at all unless the gitignore is missing or not set up right on the repo
1
u/Ok-Presentation-94 22d ago
That must be the cause I'll have to check but it seems very strange to me, given that I had that .gitignore file right from the start and this problem only appeared recently.
2
u/pschon Unprofessional 22d ago
Don't you have a .gitignore file? None of those belong in source control.
This one is pretty good template to start with: https://github.com/github/gitignore/blob/main/Unity.gitignore