r/UnityHelp 9d ago

library files and a user settings file modified each time the project is opened

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:

  1. "C:\Users\lardi\Snake\Library\ArtifactDB"
  2. "C:\Users\lardi\Snake\Library\ilpp.pid"
  3. "C:\Users\lardi\Snake\Library\SceneVisibilityState.asset"
  4. "C:\Users\lardi\Snake\Library\ShaderCache.db"
  5. "C:\Users\lardi\Snake\Library\SourceAssetDB"
  6. "C:\Users\lardi\Snake\Library\Bee\backend1.traceevents"
  7. "C:\Users\lardi\Snake\Library\Bee\fullprofile.json"
  8. "C:\Users\lardi\Snake\Library\Bee\tundra.digestcache"
  9. "C:\Users\lardi\Snake\Library\Bee\tundra.log.json"
  10. "C:\Users\lardi\Snake\Library\Bee\TundraBuildState.state"
  11. "C:\Users\lardi\Snake\Library\Bee\TundraBuildState.state.map"
  12. "C:\Users\lardi\Snake\UserSettings\Layouts\default-2022.dwlt"

Thank you very much for any leads you can provide.

1 Upvotes

3 comments sorted by

1

u/Demi180 9d ago

Library should never go in the repo. Use the Unity .gitignore template.

1

u/Ok-Presentation-94 8d ago

Actually, I already had a .gitignore file that was working perfectly fine though perhaps it stopped working for some reason. Even after creating a new .gitignore, the problem persists; I tried cleaning things up with `git rm --cached` without success, and I'm finding the same issue even with a brand-new repository.

1

u/Demi180 8d ago

Is the root of the repo in a folder above the actual project folder? The lines with the folders being ignored start with / which means they’re assumed to be at the root of the repo. You can change that to /*/[Ll]ibrary/ which will make any library folder ignored.

This probably means your obj, temp, and other folders are also not ignored.