Search Issue Tracker
By Design
By Design in 5.6.X, 2017.1.X
Votes
0
Found in
5.6.3p2
Issue ID
951006
Regression
No
Animation curve does not overwrite values changed via code
With an animation curve. e.g. transform.scale.x setting with a key set to 1 every frame. Changing this in the code will set it to the value in code, but it will not reset the value back to what it is meant to be in the animation.
Steps:
1. Open TestScene (Project: "AnimatedPropertyResetProblem copy.zip")
2. Press Play
3. Press A
Expected behavior: model does not stretch in x because animation has curves setting it to 1.
Actual behavior: observe that the model stretches in x, even though the animation has curves setting it to 1.
Other behavior (expected one):
1. Outside of Play mode, set "Turntle/Skeleton_GRP/root_JNT" transform.scale to any number other than 1,1,1
2. Press Play
3. Observe the scale gets set to that in the animation.
4. Press A as before (it will not stretch, animation setting it correctly)
5. Try modifying in the inspector, again will not change due to the animation setting it as intended.
Reproduced with: 2017.3.0a7, 5.6.3p2, 5.5.4p5.
BY DESIGN: This is intended. As scale transforms are constant curves in this instance, we do not re-evaluate the curve at every frame.
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- "Shader warning in 'Hidden/Light2D': implicit truncation of vector type" is thrown when building Universal 2D template
- AI Assistant breaks compilation of packages using System.Runtime.CompilerServices.Unsafe via auto-referencing
- Unity Hub checks the "Documentation" module by default on the 6.4 and 6.5 streams despite that it was unchecked with the previous installs
- Shortcut that toggles between Dopesheet and Curves Views in the Animation Window's Timeline is mislabed
- Property List Items Overlap onto the Property List's top edge when scrolling through a long Property List
Add comment