- Home /
In what files does Unity store relations between GameObjects and the public vars in scripts they are attached to?
After every commit we lose a lot of connections between objects in scene hierarchies and scripts that should hold a reference to them in public vars. Which files govern this? We probably mistakenly added something to our ignore lists.
Are you sure you are saving the scene and project? I often forget to do so and the if other users commit, I pull and lose it all.
$$anonymous$$ake sure you have Shown All Hidden Files and your $$anonymous$$eta files are getting committed too.
Answer by steakpinball · Mar 04, 2015 at 07:43 PM
They are stored in the scene file. The meta
files maintain the ID of each file in your project. Make sure the Assets
and ProjectSettings
folders are under version control. The Library
and Temp
folders should always be excluded. Make sure Version Control is set to "Visible Meta Files" in Edit -> Project Settings -> Editor. Setting Asset Serialization to "Force Text" also helps, but is not necessary.
For more information on external version control see http://docs.unity3d.com/Manual/ExternalVersionControlSystemSupport.html.
Your answer
Follow this Question
Related Questions
Need to see the whole hierarchy of a Prefab in the Project Tree 3 Answers
How to structure a project using a lot of asset store assets? 1 Answer
Moving from Project to Hierarchy 3 Answers
Unable to Drag and Drop from the Project pane into the Hierarchy pane in Unity 5.4.0b22 0 Answers
which one of the panels in unity has effect on the size of the project? 0 Answers