Search Issue Tracker

By Design

Votes

141

Found in

2017.1.3p1

Issue ID

999825

Regression

No

[Animation] Animator Transition does not get interrupted

Animation

-

-

Priority: 4Not yet prioritized for a release

-

Severity: 2Core functionality majorly impacted

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

    simonbz

    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:
    https://blogs.unity3d.com/2016/07/13/wait-ive-changed-my-mind-state-machine-transition-interruptions/

    Hope this helps!

  2. 2ddc6e825746eeb0727b197ec3517076?d=mm

    joshrichardson1234

    Jun 09, 2018 05:28

    Please please fix this.

  3. F6bbe1b73a47307bf37d49741287bde7?d=mm

    Tyrathect

    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

    Appminis

    May 12, 2018 16:20

    Fix needed

  5. A260e4157e808317de550f745ed68b3e?d=mm

    dstovell

    May 01, 2018 20:19

    This is majorly holding up my project!!

  6. 14bfea7d916d526e663b2cd5205640d7?d=mm

    tatelax

    Apr 17, 2018 19:45

    Please fix this.

  7. 837d203d6f4c3e1017b61aba96d16da1?d=mm

    MABS_Ghaffari

    Apr 16, 2018 12:58

    Fix it please

  8. 46c097ab135ed114563dc624c6ff9834?d=mm

    zhuchun

    Mar 21, 2018 03:50

    This matters a lot, please fix it.

  9. B02f2a9de0d85458f130cb22f7176083?d=mm

    apexsoftworks

    Mar 18, 2018 06:34

    Please fix this bug.

  10. 2ee8ba1d083e4a900eed1787a92a0246?d=mm

    elcobone_unity

    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 ???

All about bugs

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