gitignore icon indicating copy to clipboard operation
gitignore copied to clipboard

Ignore unity import auto-generated meta

Open ShortDevelopment opened this issue 1 year ago • 0 comments

Reasons for making this change: When you import a local *.unitypackage file into Unity, the editor might save a copy of the imported package file next to the extracted content.

Unity creates a <filename>.meta file for every file. As *.unitypackage is already ignored in the template, only the *.unitypackage.meta file gets checked into version control.

If user A imports the package, his unity instance creates the meta file, and it gets committed. The unity instance of user B sees only the *.meta file and automatically deletes it. User A gets a commit with the *.meta deleted, so his Unity recreates the file.

This causes an infinite cycle of creation and deletion.

ShortDevelopment avatar Aug 17 '22 13:08 ShortDevelopment