Skip to content

Conversation

Habetdin
Copy link

@Habetdin Habetdin commented Sep 30, 2025

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

  • 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

Add debug data directories entry
Add OBB (Opaque Binary Blob) files entry
Use explicit directory paths (add trailing slash)
Use explicit `name` + `name.meta` pairs instead of `name*`
Use explicit directory paths (add trailing slash)
Add PerformanceTestRun files entries
Remove duplicate InitTestScene entry
Ignore Gradle backup setting files
Ignore Gradle local.properties
Make pattern more explicit (include Assets directory prefix)
Ignore TouchDesigner cache files
They are generated during 3D models editing
Unity Editor creates backup files on crash
and places them in Assets/_Recovery directory
@Habetdin Habetdin requested a review from a team as a code owner September 30, 2025 00:09
@Habetdin
Copy link
Author

Habetdin commented Sep 30, 2025

@wirecat just FYI: the d0c6a25 commit has merged:

# TestRunner generated files
InitTestScene*.unity*

which is a duplicate-ish of previous:

# Auto-generated scenes by play mode tests
/[Aa]ssets/[Ii]nit[Tt]est[Ss]cene*.unity*

This PR replaces both with more explicit rule (name + name.meta patterns instead of wildcard name* one):

gitignore/Unity.gitignore

Lines 104 to 105 in ae35063

/[Aa]ssets/InitTestScene*.unity
/[Aa]ssets/InitTestScene*.unity.meta

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant