Hello Iam slowly making progress on getting my animations into unity but I have an issue that I have to reimport the fbx file for my created clips to show up. For example in this grab you can see the project shows two anim clips but on the right in the inspector the correct 4 clips are shown: But if I then reimport the asset the project shows the correct set of clips Iam making and adding the clips at import time through the AssestPostProcessor class thus:
So can anyone help into why I have to reimport for the clips to show up correctly, there must be a step Iam missing somewhere. Thanks Chris
asked Mar 11 '10 at 09:22 AM
I posted a script we used in a previous project to perform the animation splits on import here.
Reading through your code, there are a few things I'm not sure of as they are referencing custom classes that haven't been provided (eg AnimationControl), so I can't really comment on what is exactly happening there, however I can say that my script worked reliably so it might be worth looking at to try and fix your issue.
One thing that did stick out however is you are using OnPostprocessModel(), and I am using OnPreprocessModel(). Possibly the editor doesn't see or save the changes until the second import as they are happening after the import, not prior to the import.
answered Mar 12 '10 at 11:47 PM