Search Unity

  1. Are you interested in providing feedback directly to Unity teams? Sign up to become a member of Unity Pulse, our new product feedback and research community.
    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