Search Issue Tracker

By Design



Found in


Issue ID




[Animation] Animator Transition does not get interrupted



Steps to reproduce:
1. Open user attached project
2. Open scene_Crossfade.unity
3. In the Cotroller.cs script, notice that at frame 30 the hard coded transition starts, at frame 33 "AbilityIndex" is set to 2, "AbilityChange" is called
4. Hit play
5. Observe the logs and notice that at frame 33 transition does not get interrupted

Actual result: transition is not interrupted
Expected result: two parameters that are updated should cause the current transition to be interrupted

Reproduced in: 2018.1.0a1, 2018.1.0b7, 2017.3.1p1, 2017.2.1p4, 2017.1.3p1

Comments (13)

  1. 2a930bec0ecef3c002e0bafebda58299?d=mm


    Sep 25, 2018 21:48

    Hi there! Seeing as there are a lot of comments on this issue, I think it would be good to forward the response we gave to the user when we resolved this.

    Here goes:
    "Calling Animator.CrossFade or Animator.CrossFadeInFixedTime creates a dynamic transition from the current state to the state specified in parameter. This transition does not set an interruption source and cannot be interrupted by the state machine.

    To do this, you can call Animator.Play(stateName) to interrupt the CrossFade and force the state machine back to a known state from which you will be able to evaluate the state machine parameters.

    Alternatively, you can also call Animator.CrossFade with a small deltaTime to transition from the current pose back to a known state and let the state machine evaluate its parameters from there."

    Also, here is a blog post that explains how interruptions sources work in the State Machine:

    Hope this helps!

  2. 2ddc6e825746eeb0727b197ec3517076?d=mm


    Jun 09, 2018 05:28

    Please please fix this.

  3. F6bbe1b73a47307bf37d49741287bde7?d=mm


    May 17, 2018 23:12

    You guys should re-submit this as a bug in 2018. Unity deprioritizes bugs from previous versions.

  4. 0349b82def0d98a91e40b160dd19ea8d?d=mm


    May 12, 2018 16:20

    Fix needed

  5. A260e4157e808317de550f745ed68b3e?d=mm


    May 01, 2018 20:19

    This is majorly holding up my project!!

  6. 14bfea7d916d526e663b2cd5205640d7?d=mm


    Apr 17, 2018 19:45

    Please fix this.

  7. 837d203d6f4c3e1017b61aba96d16da1?d=mm


    Apr 16, 2018 12:58

    Fix it please

  8. 46c097ab135ed114563dc624c6ff9834?d=mm


    Mar 21, 2018 03:50

    This matters a lot, please fix it.

  9. B02f2a9de0d85458f130cb22f7176083?d=mm


    Mar 18, 2018 06:34

    Please fix this bug.

  10. 2ee8ba1d083e4a900eed1787a92a0246?d=mm


    Mar 08, 2018 21:54

    I would like something positie to give tto Unity it bring you the best tools to create why so negative ???

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.