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
- Tile Palette selected dropdown text does not update when palette is renamed
- ArgumentException thrown and reference to Template gets unset when opening UXML file after editing referenced Template in Play mode
- [iOS][WebGL] Player freezes when multiple properties of a VisualElement are changed at the same time
- Warning 'GetControlID at event ValidateCommand returns a controlID different from the one in the Layout event' is logged when undoing the deletion of an Edited Freeform 2D Light
- ShadowCaster2D breaks on certain Rotation positions when Casting Source is set to PolygonCollider2D
Add comment