Search Issue Tracker
By Design
Votes
141
Found in
2017.1.3p1
Issue ID
999825
Regression
No
[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
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- [Particle System] Editor freezes when assigning a nested Particle System in the Sub Emitter Module
- Unable to switch to different material when selecting another material from Asset selector window on Particle System Material
- [UI] Float type parameter in the Animator Controller displays 0.0 after being changed to a value <0.05
- Inspector displaying wrong characters when using ANSI encoding and non latin characters in a Shader property
- Error in console when using the progress bar API along with Texture compression
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!
joshrichardson1234
Jun 09, 2018 05:28
Please please fix this.
Tyrathect
May 17, 2018 23:12
You guys should re-submit this as a bug in 2018. Unity deprioritizes bugs from previous versions.
Appminis
May 12, 2018 16:20
Fix needed
dstovell
May 01, 2018 20:19
This is majorly holding up my project!!
tatelax
Apr 17, 2018 19:45
Please fix this.
MABS_Ghaffari
Apr 16, 2018 12:58
Fix it please
zhuchun
Mar 21, 2018 03:50
This matters a lot, please fix it.
apexsoftworks
Mar 18, 2018 06:34
Please fix this bug.
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 ???