Update Unity template
Reasons for making this change
This PR tidies up the existing Unity template and adds multiple new Unity-related patterns.
Normalization is achieved by:
- Addressables, Visual Scripting: Use explicit paths for directory patterns (add trailing slash)
- Addressables: Use explicit
name+name.metapattern pairs instead of wildcardname*patterns - Blender: Include
Assets/directory prefix to make pattern more explicit - Memory Profiler: Update
/[Mm]emoryCaptures/to/[Mm]emory[Cc]aptures/for uniformity
Links to documentation supporting these rule changes
New patterns were added for the following:
Builds
- *_BackUpThisFolder_ButDontShipItWithYourGame directories
- *_BurstDebugInformation_DoNotShip directories
- Android Expansion Files (OBB)
Mono
Mono produces files which are not always cleaned up (e.g. after crashes):
Test Framework
- Added PerformanceTestRun files entries
- Removed duplicate
InitTestScene*.unityentry
Other
- EDM4U
Assets/GeneratedLocalRepo/directory (EDM4U is External Dependency Manager for Unity) - Android Gradle settings backup files (e.g.:
mainTemplate.gradle.backup,mainTemplate.gradle.backup2, etc.) - Android Gradle local environment properties file
- TouchDesigner TDImportCache cache directories
- Unity Crash Recovery
Assets/_Recovery/directory - Unity Editor creates backup files after crash
Merge and Approval Steps
- [x] Confirm that you've read the contribution guidelines and ensured your PR aligns
- [ ] Ensure CI is passing
- [ ] Get a review and Approval from one of the maintainers
@wirecat just FYI: the d0c6a25dd6ef2c8ab8345be36553574a248aea39 commit has merged:
https://github.com/github/gitignore/blob/fc6ce5da28a8c3480cc8a5acad050449f72a9261/Unity.gitignore#L79-L80
which is a duplicate-ish of previous:
https://github.com/github/gitignore/blob/fc6ce5da28a8c3480cc8a5acad050449f72a9261/Unity.gitignore#L98-L99
This PR replaces both with more explicit rule (name + name.meta patterns instead of wildcard name* one):
https://github.com/github/gitignore/blob/ae3506396ab5989d7d52042dc678d2f230da908b/Unity.gitignore#L104-L105
@wirecat could you review this PR please?