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

Question Animation doesnt play on old character after edit it in blender

Discussion in 'Asset Importing & Exporting' started by matreusz4, Sep 13, 2021.

  1. matreusz4

    matreusz4

    Joined:
    Jan 18, 2020
    Posts:
    13
    Hello. I downloaded a few animations from mixamo and uploaded it to my game. It comes in .FBX, with skin, model etc. All animations downloaded from this site works well, im using these on character also from mixamo. I tried to edit one of them in blender. So I imported .FBX file to blender, changed some frames and exported it to unity. I see on display in inspector window that animation is playing with it's model, but when I put it on the old model where all the default animations are running, the character doesn't move, the animation doesn't work. In the future, I would also like to create my own animations, but I don't know how to make them work on the model I'm using.

    I will be very grateful for any help
     
  2. KalOBrien

    KalOBrien

    Unity Technologies

    Joined:
    Apr 20, 2021
    Posts:
    89
    Hey there, I've moved your thread to the Formats and External tools section so you could get help that is more suited to your issues!
     
  3. kdgalla

    kdgalla

    Joined:
    Mar 15, 2013
    Posts:
    4,382
    Are both files configured with "humanoid" avatars? Also, what do you mean by "put it on the old model"? Do you have an animator controller, or are you using the animation component?
     
  4. matreusz4

    matreusz4

    Joined:
    Jan 18, 2020
    Posts:
    13
    Im using animator controller.
    upload_2021-9-13_11-50-55.png

    "put in on the old model" - at the beggining of my project, I put the ybot@BreathingIdle in game, changed it name, added animator component and other component to this gameobject.
    upload_2021-9-13_11-54-45.png


    With the new .FBX file from blender, animation is working generally, but not when I put this on gameobject with animator showed up. I was meaning that.

    upload_2021-9-13_11-56-51.png

    Also, you asked about configured with humanoid avatar. I guess both files are not configured with avatars at all, so I dont have any avatar in my animator component. I just haven't changed anything in downloaded files, only copied it's animation clips so I could loop it

    Default file and edited file, both have same settings:
    upload_2021-9-13_12-0-1.png
     

    Attached Files:

  5. kdgalla

    kdgalla

    Joined:
    Mar 15, 2013
    Posts:
    4,382
    for generic rigs, in order for an animation from one file to work on another file, then the bones need to match one-for-one and have the exact same names in each file.

    On the other hand, if you set-up both rigs as "humanoid", then Unity can figure out how to map one animation to another, even if the bones don't match-up perfectly.
     
  6. matreusz4

    matreusz4

    Joined:
    Jan 18, 2020
    Posts:
    13

    I changed rig for humanoid. Now it works with edited animation, but overall the quality of all animations is worse now, they don't look as good as before. I guess this is because the humanoid rig was generated automaticly and not all bones fits correctly.

    I think I would prefer to work with generic animations. It is possible that blender changed bones names? Where should I correct that? @Edit I think I know what is te problem, blender add one more category. Default it is like that: model > mixamorig:hips, after edit: model > armature > mixamorig:hips. Can I make blender to not do this?
     
    Last edited: Sep 13, 2021
  7. kdgalla

    kdgalla

    Joined:
    Mar 15, 2013
    Posts:
    4,382
    You should be able to see a game object for each of the characters bones so you can compare the two and see what's different. Depending on the Unity version, you might have to explicitly set the rig to not be optimized in order to see them. If it's only the names of the bones that are different you can change those in Unity and it should work.
     
  8. matreusz4

    matreusz4

    Joined:
    Jan 18, 2020
    Posts:
    13
    upload_2021-9-13_19-4-36.png
    These (mixamorig) things are bones or we are talking about something elsewhere?
    If these things ara bones, names are the same, but as I said, in edited animation there are additional hierarchy file "armature".

    I'm pretty sure it's because of the "armature" thing, but I don't know how to make it not be there
     

    Attached Files:

    Last edited: Sep 13, 2021