- Home /
Occasionally losing data (animator controller transitions and animator's parameters, animation states remain)
Similar to the (supposedly-solved) 'any state' transition-loss error, we occasionally load our project after restarting a workstation, closing/opening unity, cloning, or pulling and then find that animation-transitions have disappeared, vanished without a trace, along with the parameters which dictate when transitions occur. This of course appears to happen (almost(?)) exclusively on the most-frequently-updated and most-complicated rigged character in the project. This is problematic given its structure is increasingly complicated and therefore increasingly time-consuming to reconstruct piece-by-piece.
Probably due to some kind of local caching behavior in Unity, it generally doesn't help to roll back to a recent previous commit, as the transitions sometimes seem to be held in temporary storage somewhere and not always make it into the repo despite vehement git add .-ing from top-level and vehement git add -u-ing as well. To fix this, we often have to re-link the animations manually, because the animations that appear to be configured correctly as we're working have somehow not been committed (at least in a way that Unity can correctly re-load them). It's both boring and enraging.
If it matters, we're currently using Unity 4.6.1f1 on Windows 7 and 8.1 with Spriter and Git, with the following .gitignore file at the top-level to prevent bloating the repo with temporary files:
#ignore the following folders:
Library/
Temp/
Obj/
#ignore any files with the file-extensions/suffixes:
*Thumbs.db
*.csproj
*.sln
*.unityproj
If there isn't some issue with files we are leaving out...
Where is/are the file(s) which store the animator-transition information? I get the sense they are spread out somehow or else we would be seeing consistent behavior instead of running into data-loss issues so unpredictably, even after saving (committing) what appears to be a perfectly stable project-folder.
If you're also having an issue like this, be sure to chime in at least in comments, even if you don't have a lot of information; I will be sure to post workarounds as we learn about them even if we can't gain a full understanding of what's going on.
Also, if anybody else understands why everything can be running just fine before a restart/reimport/rebuild and then suddenly break without a clear reason, that's helpful information too.
Let me know if I can clarify anything.
I'm experiencing something similar.
In some cases, I am losing the "motion" fields in my animation states.
Today, something new happened: all of the state transitions decided to become 5 seconds long.
This is driving me nuts. Did you ever track down the problem?
The data is stored in the .controller file (turn on "Verify Saving Assets" to see what files Unity saves after you modify an asset and select "Save Project"). You might try turning on text serialization and comparing the contents of this file before and after the data loss occurs.
We're not seeing this kind of data loss, but in the course of tracking down some anomalous behavior in $$anonymous$$ecanim, I turned on text serialization and started poking around this file and found that it appears to be storing every animator state, state-machine, and transition ever created (including those long-since deleted). Given that this amounts to hundreds of thousands of objects in the file, it's not terribly surprising that something could go wrong at some point...
Your answer
Follow this Question
Related Questions
2D Animation does not start 1 Answer
Mecanim Runtime Controller is Private! 0 Answers
Loading Scree 2 Answers
Save & Load Game question 3 Answers
Android load/unload times 0 Answers