[SOLVED] Reuse generic avatar animation for the same FBX

I would like to be able to reuse the animation clip (file *.anim) created for generic avatar in another game object instance of the same FBX model. Step by step my desire sounds like this:

  1. Import FBX model into project.
  2. Drag and drop this model into a scene.
  3. Create some animation clips.
  4. Open new project with the same FBX model inside, create game object from it there.
  5. Copy .anim file to the new project and attach somehow it to the newly created game object.

I know that generic animation retargeting is not supported yet. I know that I can use a prefab and export/import it via .unitypackage. It really works. BUT… The design process of my 3D model is iterative and it’s not finished yet. Some minor mesh/UV operations could be done later, I mean maybe in the version 2 of my project. Also some bones could be added later (not affecting transforms of the existing bones). Sometimes even after minor mesh operations reimported model messes up my prefab so I have to recreate the prefab and this leads to animations lost. What I can do to preserve animations in my case?

I think that if the bones remain the same then attaching the animation to a the same model in a different place should work.

–

1 Answer

1

The trick was in step 5: it was not enough to just copy .anim file from one project to another. Instead I used .unitypackage to transfer the animation from one project to another and it works for me now!