- Home /
Git issues with 4.3
We've been using git for a while now, and it's worked fine with Unity with Version Controlled Meta Files turned on. However, some time after upgrading to 4.3, a co-worker pulled a new version of the code, and some (but not all) of our scripts, prefabs, and NGUI atlas references were broken (e.g. "script not found", instances of prefabs appear red in the hierarchy and no longer link back to the prefabs). They can be restored, but it's quite a chore to do so.
I noticed that with 4.3 came the option for Visible Meta Files and Hidden Meta Files. It seems that Visible Meta Files was selected for my project by the migration to 4.3. Is this the correct setting for using git? And if so, what might cause this behavior?
Thank you.
Answer by WorldManager · Dec 03, 2013 at 07:06 AM
I expect one of your co-workers accidentially set this option wrong. Did you also check you all use the (exact) same Unity Version?! Don't know if it really bother, but you should avoid different versions in any collab software!
noticed that with 4.3 came the option for Visible Meta Files and Hidden Meta Files. It seems that Visible Meta Files was selected for my project by the migration to 4.3. Is this the correct setting for using git? And if so, what might cause this behavior?*
Yes, that's correct. Please refer to the releasenotes: http://unity3d.com/unity/whats-new/unity-4.3
Asset Pipeline: .meta files are now always turned on. From Project Settings -> Editor you can choose to hide them if you are not using version control.
so there is no solution to this problem? We are encoutering the same behaviour...
so then, perhaps I mis-interpreted the "question" above?! Which problem is there exactly and how it can be reproduced?! I don't have any problems with it on 4.3.x currently. But you shouldn't mix up different Unity versions in the $$anonymous$$m, perhaps this caused the problem?!
Answer by keinabel · Dec 14, 2013 at 06:45 PM
The problem for us was that the *.meta files were not added to the repository.
Try this : http://stackoverflow.com/questions/19151247/ignoring-folder-meta-files-on-version-control
(the default gitignore file in the repo had *.meta in it)
good point, but I doubt that this is the fact if same code worked fine for him in the past?!