- Home /
Meta files: What is the "fileFormatVersion"?
What is its purpose and, above all, why does it change out of the blue?
It's breaking our git when changing from mac to pc (or vice-versa), but that might be beyond this question's point. When fetching from either end, it goes from 1
to 2
- and only in some apparently random meta files, not all of them get changed. Like this:
- fileFormatVersion: 1
+ fileFormatVersion: 2
guid: cfbadcfd53f62afc5623fbadafbc3ab56
Are you using identical Unity versions on both? (i.e., 3.5.2f2?)
sup again @Wolfram? :-) It's same version on both, but it's still 3.5.0b6. I don't know if 2f2 was released back then, but we couldn't upgrade yet due to bundle issues - we're still trying to figure out a good way to keep bundle consistent with releases and different unity versions.
Answer by amacleod · Aug 24, 2012 at 07:25 PM
I have a hypothesis that `fileFormatVersion` governs to the line endings that Unity expects in a script file. (See http://stackoverflow.com/questions/1552749/difference-between-cr-lf-lf-and-cr-line-break-types for more info on CRLF versus LF).
I have not verified this with experimentation, but I am guessing that `fileFormatVersion: 1` indicates Windows files (using CRLF) and `fileFormatVersion: 2` indicates Mac files (using just LF).
I'll try to confirm that next week... If that's it, way to go with terrible na$$anonymous$$g! :P
For Windows it is 2 and for $$anonymous$$ac is 1. $$anonymous$$ac was developed before Windows version. There is also a linux version. Do you have any idea abou the fileformatVersion value there ?
Your answer
![](https://koobas.hobune.stream/wayback/20220613071621im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Understanding how to use Perforce with Unity 1 Answer
Meta files broken in 4.2.2? 1 Answer
Visible or hidden meta files with Git? 1 Answer
Impossible to share or version control on the free licence? 2 Answers
Latest Version Controller 1 Answer