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

BuildHumanAvatar does it even work?

Discussion in 'Animation' started by Pixel2015, Apr 11, 2020.

  1. Pixel2015

    Pixel2015

    Joined:
    Mar 10, 2016
    Posts:
    35
    Hi guys, there is not that much info about AvatarBuilder.BuildHumanAvatar so I just want to ask right away does it even work?

    Because when I build the avatar even with the exact same humanDescription as the avatar that was already on the Animator all the animations stop working.

    I didn't even try to change that avatar in any way for now, using the same humandescription and same hierarchy of objects it breaks all the animations. Any suggestions?

    Thanks.
     
  2. wetcircuit

    wetcircuit

    Joined:
    Jul 17, 2012
    Posts:
    1,409
  3. Pixel2015

    Pixel2015

    Joined:
    Mar 10, 2016
    Posts:
    35
    Thanks I will check it out, but the thing is there is no new hierachy, I didn't change anything just BuildHumanAvatar with the same hierarchy and description the old one had. Just to check if the function works.
     
  4. Pixel2015

    Pixel2015

    Joined:
    Mar 10, 2016
    Posts:
    35
    Ok seems that it was a problem on my part but it is kind of not clear from the get go either.

    If you create an avatar from an imported FBX it also creates HumanBones (inside the descriptor not inside mesh) for the root of the fbx not just it's bones. So there is a HumanBone in the descriptor for the Fbx root called by the Fbx name.

    And the problem is that once you drag this into scene it gets renamed to FbxName(Clone) obviously and even if the original avatar works with FbxName in the descriptor with it when you create a new Avatar you need to rename this HumanBone in the descriptor to FbxName(Clone) for it to work.

    So far so good, going to delve deeper now changing the avatar. Cheers.
     
  5. MajorMilkMan

    MajorMilkMan

    Joined:
    Aug 26, 2015
    Posts:
    2
    Did you have any luck with this? If I use BuildHumanAvatar with the same humanDescription it does animate but it is all messed up
     
  6. BubbaRichard

    BubbaRichard

    Joined:
    Jul 1, 2012
    Posts:
    51