Search Unity

MECANIM: How to stop the "Any State" transition being called multiple times to same state

Discussion in 'Animation' started by hersheys72, May 4, 2016.

Thread Status:
Not open for further replies.
  1. hersheys72

    hersheys72

    Joined:
    Sep 4, 2015
    Posts:
    7
    I have a player that is transitioning from "Any State" to a "Jump In Air" state with the condition of "Distance To Ground" > 3. This works well for when the player walks off of an edge etc, as instead of the "Jump Start" animation being played it just goes straight to the "in Air" loop, however the condition is true during the animation so it is being called multiple times and the animation doesn't play in its entirety.
     
    Alexey820 and Foksnor like this.
  2. hersheys72

    hersheys72

    Joined:
    Sep 4, 2015
    Posts:
    7
    THE FIX:
    - Expand the "Settings" in the inspector with the Any State - > Jump in air selected.
    - Deselect the "Can Transition To Self" toggle.
     
  3. hexdecc

    hexdecc

    Joined:
    Oct 24, 2014
    Posts:
    146
    saved my day...
     
  4. dhtpdud528

    dhtpdud528

    Joined:
    Apr 8, 2018
    Posts:
    23
    God...
     
  5. PurpleCoil

    PurpleCoil

    Joined:
    Apr 4, 2019
    Posts:
    1
    Fixed it, thanks alot!
     
  6. Zardify

    Zardify

    Joined:
    Jul 15, 2015
    Posts:
    20
    Holy sh.... after so many years I too end up here with the exact same situation. Thanks!
     
  7. Topete9

    Topete9

    Joined:
    Nov 3, 2020
    Posts:
    1
    Saved my day in 2023. Thank you!
     
  8. MelvMay

    MelvMay

    Unity Technologies

    Joined:
    May 24, 2013
    Posts:
    11,459
    Please don't necro posts, use the like button to show appreciation instead.

    Thanks.
     
Thread Status:
Not open for further replies.