Search Unity

Need callback when an animation is interrupted

Discussion in 'Animation' started by NorthAstar, Aug 18, 2021.

  1. NorthAstar

    NorthAstar

    Joined:
    Mar 23, 2021
    Posts:
    1
    Is there any way I get notified when an animation is interrupted? I am currently working on my action system.When I triggered monster attack animation , the animation will fire an animation event at a certain frame,which activates a collider box to detect if the player is in monster's attack range.And before the animation end , another animation event will deactivate the collider box.The problem is ,some time the attack animation can be interrupted. So sometimes the collider box is activated by the animation event but never deactivated when the animation is interrupted.The collider box will keep posting damage to the player even when the monster is not attacking.Is there any callback for animation interrupted? Please help me with us!
     
    superbes89 likes this.