- Home /
When switching between PCs and using version control, why does one prefab's Animator component lose its association with a Controller?
For a school project, my teammates and I are using GitHub to host our Unity2D game. We have set the project to have Visible Meta Files and to Force Text for asset serialization. One single prefab of ours is losing its Animator's association to a Controller that is assigned to it whenever we switch to a new PC with version control. What I mean is:
I will commit anything to GitHub using GitKraken when the Animator has a Controller assigned to it.
I will switch to any other PC (my laptop, one of my teammates' desktops or laptops), pull the newest changes, and open the project.
The prefab's Animator now no longer has an associated Controller.
If I re-associate the Controller, I can see in GitKraken that a GUID has changed. If I push that change and then switch back to the original PC, pull the change, and open the project, it is broken again. However, GitKraken does not show that the file was automatically changed by Unity, so it isn't being re-imported when I open the project after pulling the latest change.
See picture below:
It's not difficult to just re-associate the Controller every time, but it's rather annoying. Does anyone have any suggestions?
Simple sanity check but did you save your project? I've run into issues with svn and animations, animation controllers, clips, etc if the project isn't saved properly.
Your answer
Follow this Question
Related Questions
Unity Version Control - missing scene files and materials when downloading or cloning. 0 Answers
Git and Unity not working correctly: missing components, textures, materials, etc. 2 Answers
How to maintain an iOS and Android version of the same project? 1 Answer
How to fix /Library/ conflicts in GitHub repo for Unity project? 1 Answer