Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Question Issues from Blender to Unity

Discussion in 'Animation' started by Andrzej828, Nov 23, 2023.

  1. Andrzej828

    Andrzej828

    Joined:
    Jun 22, 2015
    Posts:
    21
    Hello! I'm having some trouble importing this character I've been animating from Blender to Unity. There seems to always be extremely varied and unpredictable trouble when doing such things, for example for a past game project, I've had it that extra actions imported with my character, making him extremely "thin" (extremely scaled down on the x and z axes).

    In this case, the guy imports just fine, BUT when he plays his walk cycle animation, some strange artefacts occur. The actual base game object moves back and forth - the armature object itself also moves around. I don't understand how the base object could possibly move because it's not an object that exists in Blender (I guess either the export or the import generates it... probably the import since it's a Unity game object? There's gotta be something interfering here though). As to the armature object itself, I don't think I have any animations on it as an object rather than its individual bones.

    Can someone point me in the right direction as to what to look for that could be causing this interference? Is there a hidden action somewhere I need to delete?

    Thanks greatly!

    upload_2023-11-23_9-44-1.png

    While playing the animation, the base game object is moving back and forth as the arrows show, and the armature object is ridiculously high up:
    upload_2023-11-23_9-45-20.png
    upload_2023-11-23_9-45-53.png
    In Blender, there is none of this. Below, the animation is playing, and there is no oscillation of the armature object itself.
    upload_2023-11-23_10-3-31.png
     
  2. Andrzej828

    Andrzej828

    Joined:
    Jun 22, 2015
    Posts:
    21
    This issue was somewhat complicated to resolve. It turned out, I had to export the character together with the rig, but NOT BAKE animations. Then I had to export the rig separately and BAKE the animations onto IT, and use its avatar as the mesh+rig's avatar.
     
  3. halley

    halley

    Joined:
    Aug 26, 2013
    Posts:
    2,276
    In general, always "Apply" the scale in Blender to everything, so that they are exported with a scale of 1:1:1. Any other scale will end up getting baked or skewed when the FBX is imported into Unity.