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

-

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 (15)

  1. LastKnightXZ

    Feb 22, 2022 16:44

    crossfade can't be interrupted (meaning there will a static pose from which interrupting transition will continue blended together) by other crossfade nor by animator when a interrupt is raised by a state , seriously as there is no other way to replicate transition interrupt from script please this needs to fixed

  2. 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!

  3. joshrichardson1234

    Jun 09, 2018 05:28

    Please please fix this.

  4. Tyrathect

    May 17, 2018 23:12

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

  5. Appminis

    May 12, 2018 16:20

    Fix needed

  6. dstovell

    May 01, 2018 20:19

    This is majorly holding up my project!!

  7. tatelax

    Apr 17, 2018 19:45

    Please fix this.

  8. MABS_Ghaffari

    Apr 16, 2018 12:58

    Fix it please

  9. zhuchun

    Mar 21, 2018 03:50

    This matters a lot, please fix it.

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.