Search Issue Tracker
By Design
Votes
0
Found in
2017.3.0a1
2017.4.12f1
2018.3.0a1
2019.1.0a1
Issue ID
1096975
Regression
No
The Animation clip is not playing when using StateMachineBehaviour OnStateMove() method
How to reproduce:
1. Open attached "RootMotion.zip" project
2. Play the Scene. Notice that Animations are working
3. Go to Assets -> "State" script and uncomment "OnStateMove()" method
4. Play the Scene
Expected result: The objects are animated
Actual result: The Animation clips are not playing
Reproducible: 2017.4.18f1, 2018.3.1f1, 2019.1.0a13
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
- Out-of-bounds memory access with multiple CanvasRenderers under a Canvas when using Mesh API
- Inspector tries to access file after it was deleted when the file was locked in Inspector window
- Changing Transform values in Search window Inspector loses focus while dragging and stopping mouse without releasing dragging action
- Saving changes on the dirty VFX Graph during the Play mode throws "The referenced script (Unknown) on this Behaviour is missing!" warnings
- VFX Graph Debug Info overlaps the "Initialize" block debug info by default
Resolution Note:
This is expected. Implementing OnStateMove disables the automatic built-in root motion for this state, so that you can implement it yourself. The animation is playing, but it only has animation curves that apply on the root joint, which you have just decided to override.