Search Unity

Question Check if an animation interrupted by another

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

  1. lacas8282

    lacas8282

    Joined:
    Apr 25, 2015
    Posts:
    139
    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..