Unity deletes .meta files when I open the project

I’m working on a Hololens project with a co-worker, and every time I open Unity after pulling the changes from our Bitbucket repository, a bunch of .meta files associated with HoloToolKit get deleted. I’ll try to list as many pertinent facts about this case as I can.

Unity Version: 2017.1.1f1 Personal

Relevant screenshots: Imgur: The magic of the Internet

  1. When I do a hard reset on my branch, I can open the folders in question and I see the .meta files just fine. Then I open Unity and my Source Control (currently just using Visual Studio Team Explorer) lists all the files as deleted in my changes. Same thing happened when I was using SourceTree, and if I check the files with File Explorer, they’re all gone.

  2. I’ve tried downloading the repository fresh after the other developer pushed to a completely new local repository, no luck.

  3. I’ve tried adding the missing files in question back in and they automatically get deleted as soon as Unity is opened, or even if Unity is already opened, they just end up being deleted again.

  4. My Unity Editor settings are set to allow for Visible Meta files and force Text Serialization.

It’s not a problem with the .gitignore file, because like I said, the files are there, both in the repository and when I pull the project from bitbucket. The project runs just fine when use the Unity Emulator. The problem is every time I push to the server, part of the changes are those .meta files are deleted, then the other developer ends up adding them back when he pushes.

Thanks for the help!

@Dmidcap I know this was a long time ago, but I’m hitting the exact same issue now. Did you ever figure out a solution to this? Would be much appreciated!

I am facing the same issue. I was wondering if anyone figured out a solution to this.,I am facing the same issue, I was wondering if you figured out a solution