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.

Question How do I prevent animations on different layers from getting blended ?

Discussion in 'Animation' started by stalwart5033, Jun 7, 2022.

  1. stalwart5033

    stalwart5033

    Joined:
    Jun 7, 2019
    Posts:
    74
    The question is very simple, I searched but couldn't find it anywhere, i just want the current playing animation in the base layer not blend with current state animation in other layer.

    All layers blending type is override and my character is transform motion based 2D character

    it says something about it in the write defaults section in the unity documentation but I guess it has nothing to do with it because it doesn't work for this
     
    Last edited: Jun 13, 2022
  2. stalwart5033

    stalwart5033

    Joined:
    Jun 7, 2019
    Posts:
    74
    any ideas ?
     
  3. Baste

    Baste

    Joined:
    Jan 24, 2013
    Posts:
    6,224
    If what you mean is that you don't want the base layer's animation to have any influence over the bones specified by the mask on the second layer, you can set the second layer to override instead of additive.
     
  4. stalwart5033

    stalwart5033

    Joined:
    Jun 7, 2019
    Posts:
    74
    Hello, thanks for the answer, I searched but couldn't find anything about it. I'm working on a 2d character, its animation runs by moving of transforms, all layers blending type selected as override.

    I don't know if it's possible to do something with the avatar mask as I have not worked so deeply with 3D characters other than environmental. I explained the problem exactly in the video

    (I'm aware of 2D animation package but I just I made these as a start for project and I know layers should be used around body parts in such animations)
     
    Last edited: Jun 20, 2022
  5. ConorToole

    ConorToole

    Joined:
    Feb 2, 2023
    Posts:
    2
    Did you ever figure this out I am having the exact same problem.
     
  6. ConorToole

    ConorToole

    Joined:
    Feb 2, 2023
    Posts:
    2
    Well if anyone ever goes on this thread again I have a SOLUTION: I made the base layer have no animations attached and then made all the other layers sync with the empty base layer. Then whichever layer has weight set to 1 will play. please note there should still be an animation controller in the base layer just no animations attached to states.