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

Question Some bone do not update properly when played onto an existing prefab with the same rig

Discussion in 'Animation' started by Salim, Jun 26, 2021.

  1. Salim

    Salim

    Joined:
    Apr 25, 2011
    Posts:
    148
    Hello,
    I'm having a problem when importing character animation clips and playing them on an existing prefab that have the same rig.
    When drag and dropping the model that holds the clip directly in the scene, the animation is fine, but when I play the animation onto my NPC prefab that has the exact same rig, some bones do not accurately update with the animation. Animation Problem.jpg

    Some more info:
    - both have the exact same rig and reference the same avatar in their animators.
    - The NPC prefab hold no animation, and is in a T-pose by default.
    - In the rig import tab, I'm using Generic, not Humanoid.
    - Both the rig and the animation where made in Blender 2.83.15

    Any help or hint would be appreciated.
    Thank you!
     
  2. Salim

    Salim

    Joined:
    Apr 25, 2011
    Posts:
    148
    So I managed to find a solution for this. In Blender I need to make sure that every relevant bones move and be key framed at least twice in the animation. For example, if your feet are static, you can't just key frame them once at the start, you need to make them move (even if it's subtle) somewhere else in the animation. To me this is bug; key framing a bone once should be enough.