I’m currently working on a project using Perforce to handle version control and syncing with team members. One thing we’ve recently noticed is that our ScriptableObjects stored in .asset files are always corrupt upon import from another client.
The specific error we receive on import is
“Fatal error while reading file.
Header is invalid!”
“Failed to read file
because it is corrupted.”
I have not seen any posts or information on UnityAnswers, or the Internet, regarding .asset files being corrupted by Perforce.
We’re using P4Connect, our Version Control setting (Edit->ProjectSetting->EditorSetting) is set to Visible Meta Files, and our Asset Serialization is set to Mixed.