Search Unity

Question Additional animation layers not triggering

Discussion in 'Animation' started by m_daniel26, Sep 21, 2023.

  1. m_daniel26

    m_daniel26

    Joined:
    Feb 7, 2023
    Posts:
    66
    On my main player controller object, I currently have two animation layers set up - one for weapon attacks, and one for interaction animations. I split them up because it was getting too cluttered having them all in one window, and I figured that would be a good way to alleviate some of that clutter. However, now that I've split them up, the animations are only working on the first layer (weapon attacks). I've checked and the bools/triggers are still being activated by the appropriate scripts for the interactions layer, and the state bars in the Animator window light up as if they are playing, but the animations just aren't playing in the actual game. I've set both layers to additive, thinking that might fix it, but that didn't make any difference.

    I'm assuming there's something fundamental I'm skipping over (I'm 7 months into my self-taught Unity journey), but I couldn't find anything else online or in the manual about what might be causing this.
     
  2. m_daniel26

    m_daniel26

    Joined:
    Feb 7, 2023
    Posts:
    66
    Here are screenshots of the animator windows for each layer - if there are any other screenshots/scripts that I should provide to help narrow this down, just let me know.
     

    Attached Files:

  3. Rukhanka

    Rukhanka

    Joined:
    Dec 14, 2022
    Posts:
    204
    Interactions layer has zero weight.
     
  4. m_daniel26

    m_daniel26

    Joined:
    Feb 7, 2023
    Posts:
    66
    Thank you! See, I knew it was something inanely fundamental I didn't know to set, lol. :)