- Home /
Missing Materials With Source Control
I uploaded my project via git so that I can pull it down on my laptop and work on it while on vacation. I have create a .gitignore file for the Library and Standard Assets because it takes up a lot space and I don't change it.
When I pull it on the laptop, it recreates the Standard Assets and Library folders, re-imports everything, but all of my GameObjects no longer have their materials assigned. All of them are a swimming shade of pink and it says Missing Material in the Inspector. I am using a different path on the hard-drive, but I think that would hardly matter.
What do I need to commit to the repository or do elsewhere to get those Materials to persist between computers?
Answer by dannyskim · May 21, 2012 at 11:00 PM
There are meta files associated with all your assets inside of a Unity Project, which is why any kind of external version control / source control does not save all of those settings, because they're not being linked correctly. If available to you at all, the included Asset Server within Unity ( read source control ) is extremely easy to setup, and has worked perfectly fine for me ( with a small team ).
If you're absolutely set on using git, take a look at Unity's documentation below to see if it will clear up your problems:
http://unity3d.com/support/documentation/Manual/ExternalVersionControlSystemSupport
From the link: this can be turned on via Edit > Project Settings > Editor. From there you can tell it to create the .meta files and add them to source control.
Your answer
![](https://koobas.hobune.stream/wayback/20220613071729im_/https://answers.unity.com/themes/thub/images/avi.jpg)