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 Check if an animation interrupted by another

Discussion in 'Animation' started by lacas8282, Feb 15, 2023.

  1. lacas8282


    Apr 25, 2015
    Lets say I have an anim controller with 2 states. No transitions at all

    First I play the state1. But I have an end event in that anim1.

    Immediatelly before anim1 end event playing the state2.

    So the state1 anim not ended, interrupted by state2.

    How can I check this interruption? Is there any event or listener on this?

    What is the method name?

    State machine behaviours not worked with the method name StateMachineExit or StateExit

    They only called when the state1 anim1 ended..