Differences in .meta files do not disappear in Git management for Unity projects

Asked 1 years ago, Updated 1 years ago, 381 views

Prerequisites/What you want to achieve

I manage the Unity project at GitHub.
When one of the members reinstalled the source tree and pulled the latest branch, many .meta files, some plug-in files, continue to show differences.
If you discard the difference, pull the latest branch, and then launch Unity, the same difference will continue to appear.
This difference is only made by that member, and there is nothing wrong with the other members.
It would be very helpful if you could lend me your wisdom.Thank you for your cooperation.

My Tools

  • Unity
  • GitHub
  • Git
  • GitLFS
  • SourceTree
  • Firebase
  • Windows 10

Problems/Error Messages you are experiencing

.png.meta appears in large quantities as shown in the image below.
All the differences are
buildTarget: DefaultTexturePlatform is added.
Not all image files have differences.This difference appears only in the large number of image files where buildTarget:DefaultTexturePlatform did not exist.
Enter a description of the image here
In addition, we are experiencing the addition of Firebase Firebase/Plugins/link.xml.

Tried

  • Reinstalling the Source Tree
  • Re-cloning Project
  • Verifying the Unity Version
  • Verifying .gitignore, .gitconfig, .gitattribute
  • Verify that you do not forget to commit the .meta file

Supplementary information (for example, FW/Tool Version)

  • Unity 2019.4.2 f1
  • Git version 2.28.0/LibGit21sharp 0.26.1+git-lfs v2.11.0
  • SourceTree Version 3.4.1.0
  • Firebase for Unity 7.10

unity3d git sourcetree

2022-09-30 21:55

1 Answers

It seems that the Unity BuildTarget designation was wrong.
I changed the BuildTarget to the appropriate one and it's fixed.


2022-09-30 21:55

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.