Skip to main content
2 of 2
deleted 73 characters in body

How to remove hardcoded path in UserSettings?

I would like to use Git for my Unity projects. I took the default .gitignore file that GitHub provides, but I noticed that it doesn't ignore the UserSettings folder. That wouldn't really be a big deal usually, but I noticed that the full project path is hardcoded in one of the files in that folder, specifically "UserSettings -> Layouts -> default-2021.dwlt" under "m_LastProjectPath".

I'm not a fan of that.

  • Should I put the UserSettings folder into the .gitignore as well, or maybe just "default-2021.dwlt"?
  • Is there perhaps a setting in Unity that removes m_LastProjectPath?