Search Unity

  1. The 2022.1 beta is now available for testing. To find out what's new, have a look at our 2022.1 beta blog post.
    Dismiss Notice

Help Wanted Double trigger in animator (can not solved by ResetTrigger)

Discussion in 'Animation' started by Phianthropism, Jul 27, 2021.

  1. Phianthropism

    Phianthropism

    Joined:
    Aug 19, 2020
    Posts:
    2
    In animator controller:
    Any->StateA->Movement
    StateA is triggered by trigger A (bind to A in keyboard)
    When I press A quickly for two times, A will be trigger twice.
    So I added a script to Movement State:
    OnStateEnter
    animator.ResetTrigger("A");

    But it does not works for it. I am really confused the reason, please help me
     

    Attached Files:

unityunity