Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice

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..