Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Animation plays fine through animation scrubber: improperly when triggered by Animation Controller

Discussion in 'Animation' started by rorylane, Jun 18, 2015.

  1. rorylane

    rorylane

    Joined:
    Apr 10, 2013
    Posts:
    22
    I can scrub through an animation in the animation panel, but when I trigger that same animation through the animation controller, many elements don't animate.

    Here's the Circumstance:

    1 humanoid model with wings imported as FBX
    5 animations of that model, all imported as FBX

    Both the character and the animations for that character are being imported as humanoid.
    Each animation has it's import parameters for Mask->Transform adjusted to include the wing bones.

    On the surface, everything is fine, and everything works.
    I can apply these animations to an animation controller, apply that controller to the primary model, and scrub/play the animations on my character in the animation panel.

    The trouble is, when I press play and the game is actually running, when I trigger the animations, they no longer work properly. Several of the animations basically work, but others have elements of their animation ignored. I can pause the application and scrub the animations in the animation panel, and they work fine. Somehow, when triggered by the animation controller, they behave improperly.

    I think this is probably a bug, but I was wondering if anyone else has encountered these sorts of problems before.

    Thanks -Rory-
     
  2. rorylane

    rorylane

    Joined:
    Apr 10, 2013
    Posts:
    22
    I have solved my problem, although I'm fairly sure I've also found a bug.

    My issue can be corrected by having a new avatar for each of the animation clips being imported.
    It seemed smarter to have the animation clips reference the avatar from the base model, but this appeared to have been causing severe animation artifacts where various joints would be ignored when triggered by the animation controller.