Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Resolved Blender animation only working in unity preview

Discussion in 'Animation' started by trib_nation, Jan 29, 2023.

  1. trib_nation

    trib_nation

    Joined:
    Jan 29, 2023
    Posts:
    8
    Hi,

    I'm having significant trouble getting my blender animation to play in unity. It works in the unity editor, the animator controller says it's playing but there's no animation in the game. I tried making a simplified blender animation on it's own scene and am still having issues.

    The animation does not have the "legacy" setting ticked.
    I've tried with and without an avatar. Avatar was generated in unity.
    I've also tried with and without root motion.
    The animation is set to loop.

    Pictures are:
    1. animation working in unity editor preview
    2. animation playing in animator window
    3. parent object with animator controller
    4. child object with mesh graphics
    5. Blender export settings.

    I'm sure I'm missing something really obvious but after searching multiple forum posts and mimicking Youtube videos it's still not working.

    Any help would be much appreciated.

    PreviewWorking.PNG AnimatorWindow.PNG Animator.PNG Graphics.PNG Export settings.png
     
  2. trib_nation

    trib_nation

    Joined:
    Jan 29, 2023
    Posts:
    8
    Right. If you're exporting a blender animation with bones and animations like I am you'll get a pile of stuff exported in fbx like this:
    upload_2023-1-31_15-41-50.png

    To make the animation work in unity do NOT make your own mesh renderer then apply the "TestShape" mesh, then make an animated controller and apply the avatar etc.

    All you need to do is drag the "AnimationTest" part into the scene and make your own animator controller on the "AnimationTest" part. This is how it should look in the inspector:
    upload_2023-1-31_15-45-8.png