- Home /
Importing multiple separate animations from a .blend file
I'm trying to import a model I made in blender and everything works as expected except for the animations. I have each animation set up in a separate action like this:
and importing this as a .blend file causes only the animation I had selected from this menu upon saving the .blend file to be available within unity. What am I doing wrong?
Also, I tried exporting to a .fbx file and importing that instead but not only did that not fix it, it also caused a strange error whenever I tried to look at the animation tab in the inspector for the file.
Answer by willemd · Jul 03, 2020 at 11:45 PM
I FIGURED IT OUT. Apparently Unity can recognise animations set up this way but as of version 2019.3 it's disabled by default and there's no way to enable it within the editor. In order to enable it, you must navigate to /Data/Tools/
in your installation directory (I installed it using the default path so for me it was C:\Program Files\2019.3.0f6\Editor\Data
), open Unity-BlenderToFBX.py
and change bake_anim_use_all_actions=False,
(it should be on line 43) to bake_anim_use_all_actions=True,
. This lets unity properly recognise your actions. According to the forum thread I found this solution in a bug report was filed but it was closed as "won't fix" because the team seems to view this behaviour as a matter of preference, but not enough so to actually allow you to change it.
Superb - thanks! This has finally released me from my misery.
Answer by HappyPixel27 · Jul 03, 2020 at 01:25 AM
this should help you, if not check this one out: https://forum.unity.com/threads/not-all-animations-from-blender-import-into-unity.411475/
The Unity answers thread you linked was about a different problem and the things the answerer said to check for (red underlines and bones that have been renamed) aren't there, unless that includes rena$$anonymous$$g the bones before adding any animation to them, and the four-year-old forum thread was no help as I don't have any links or proxies in my .blend file, exporting the file to a .fbx didn't even display the messages it said to look for, I haven't deleted any constraints, and the last couple of replies seemed to be about a totally unrelated issue about animations created since the previous export not appearing properly.
Is it possible that you could do the animations in unity ins$$anonymous$$d? If thats not possible you could try this video https://www.youtube.com/watch?v=ysl0qYq5p9w.
Your answer
Follow this Question
Related Questions
Only Armature is Animated 0 Answers
Blender Animation not playing 0 Answers
Animation from exported .fbx from Blender insists on spinning 180 degrees 0 Answers
Blender Texture 1 Answer
Trouble with Blender uv unwrapping? 2 Answers