gitignore icon indicating copy to clipboard operation
gitignore copied to clipboard

Update Unity template

Open Habetdin opened this issue 2 months ago • 2 comments

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.meta pattern pairs instead of wildcard name* 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

Mono

Mono produces files which are not always cleaned up (e.g. after crashes):

Test Framework

Other

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

Habetdin avatar Sep 30 '25 00:09 Habetdin

@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

Habetdin avatar Sep 30 '25 00:09 Habetdin

@wirecat could you review this PR please?

Habetdin avatar Nov 19 '25 17:11 Habetdin