Adding animations in blender to mixamo rig and using it then in unity

Im making a fully animated character. I made a model in blender, rigged and animated it in mixamo. Downloaded it as usual to unity and everything worked.
But!
I also need to create some custom animations by hand in blender and use them togerther with the ones from mixamo. Sounds simple, right? Nope.
I downloaded the rigged character in the recommended format (.dae), imported to blender and created a simple test animation. Then i imported it into unity as usual (tried both .blend and .fbx). Technically i should be able to use the animations i got from mixamo on the character i imported from blender with the handmade animations because its the same rig, right? Nope. There is a little problem, the rig structure from mixamo looks like this:
87519-d0882acfd3ff5d426b4679a76cd3fa63.png

The structure from blender looks like this:
87520-e4eec9db43339bcdeed27d338ebce6cb.png

And because of that hierarchy difference (armature object) i get an error when i try to use the avatar from the blender import on the animatons: Copied Avatar Rig Configuration mis-match. Transform hierarchy does not match: Transform ‘mixamorig_Hips_0’ for human bone ‘Hips’ not found.

Tried some things (naming it the same, …) but nothing worked, also, importing all the animations through blender is not practical as there are a lot of them (100+) and there will be probably more. Any ideas?

TLDR: Rig structure in unity is different from blender even tho they are both from the same mixamo rig. Any way to solve this?

I have solved this issue (at least for me).

So I have a mixamo rig and a seperate set of animations I created in blender. In the seperate animations,

  1. Set the Animation type to ‘Humanoid’.
  2. Set the avatar definition to ‘Copy From other avatar’
  3. Set the source avatar as the mixamo rig’s avatar, just like you do with other animations from mixamo
  4. Do NOT click the update button next to source, as it seems to then try to use the same exact rig setup as the mixamo rig, which the new animations wont be since you have an ‘Armature’ object at the top of your hierachy due to how blender sets up its rigs.

That should make them work now without throwing the import error.

Note if it has the import error, trying switching the animations avatar definition to ‘Create from this model’ and then doing the above process, to reset it.

retarget the bones in unity

You have to do the animator in the “Armature” gameobject. Blender adds this stupid bone…

Oh and i see, normaly you should not change the bone names, if you open an animation from maximo in unity in the animationview, you can see that you need the right names…