Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
This post has been wikified, any user with enough reputation can edit it.
avatar image
1
Question by Koyae · Feb 05, 2015 at 07:20 AM · animatorcontrollerloadloadingissue

Occasionally losing data (animator controller transitions and animator's parameters, animation states remain)

State 'islands' still exist but transitions and parameters are broken because they're just gone

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.

animator-dataloss.png (76.7 kB)
Comment
Add comment · Show 2
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image MarkKreitler · Aug 07, 2015 at 09:00 PM 0
Share

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?

avatar image toddheckel · Aug 08, 2015 at 12:55 AM 0
Share

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...

0 Replies

· Add your reply
  • Sort: 

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

4 People are following this question.

avatar image avatar image avatar image avatar image

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


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges