Search Unity

Include animations without creating a huge mess of connections?

Discussion in 'Animation' started by fiascosoftworks, Aug 3, 2022.

  1. fiascosoftworks

    fiascosoftworks

    Joined:
    Dec 12, 2020
    Posts:
    22
    I have an attack animation. I currently have it set to start from "any state" when the attack boolean is called true. I would like the attack animation to play once and then go back to the other animation states. I'm able to do that by adding connection from the attack state to all other states and adding a boolean trigger of attack is false. Although this works, it does not seem scalable. Is there a better way to make sure that an attack animation will play once and then move onto what animation the character is supposed to be doing.
    Thank you for your time
     
  2. jlorenzi

    jlorenzi

    Joined:
    May 2, 2021
    Posts:
    292
    I barely know anything about animations but I think what you're looking for is a blend tree.