Search Issue Tracker
By Design
Votes
0
Found in [Package]
1.6.5
1.8.4
Issue ID
TB-220
Regression
No
Timeline clip length is not calculated correctly when in "Based On Clips" Duration Mode
Reproduction steps:
1. Open project “My project (44).zip”
2. Open “SampleScene”
3. Enter Play Mode
4. Observe the “Square” GameObject through the Game view
Expected result: When the animation ends the GameObject returns back to its previous position (0,0,0)
Actual result: When the animation ends the GameObject does not return back to its previous position (0,0,0)
Reproducible with: 1.6.5 (2021.3.29f1), 1.8.2 (2022.3.77f1, 2023.1.9f1), 1.8.4 (2023.2.0b5)
Reproducible on: macOS Ventura 13.2.1 (Intel), Windows 11 (by the reporter)
Not reproducible on: No other environment tested
Notes:
- Also reproducible in Standalone Player
- Post Extrapolate for the “Square” GameObjects animation clip is set to None (Window\Sequencing\Timeline\NewAnimation)
- According to the documentation - when Post Extrapolate is set to none, in the gap after the selected Animation clip, the GameObject uses its transform, pose, or state from the scene (0,0,0): https://docs.unity3d.com/2018.2/Documentation/Manual/TimelineGapExtrapolation.html
- The Timeline clip is not fully processed to the end due to the calculation for “Timeline\Options\Duration Mode\Based on clips” being wrong
Workaround: manually setting the length of the Timeline by setting “Timeline\Options\Duration Mode\Fixed Length” and dragging the end of the Timeline further than the end of the last track
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
- Crash on SpriteAtlas::PopulatePackedTexturesAndRenderData when changing Import Settings on a Sprite that has been added to a Sprite Atlas while in PlayMode
- Empty lists can be applied in Additional Compiler Argument list in Project Settings
- [Vulkan][OpenXR] SRP Foveation Regions Not Centered when eye-tracking is not used
- Long Color Library name overflows outside input field bounds
- Shader Graph validation and Metal threadgroup memory warnings thrown when installing HDRP package in Universal 3D Template
Resolution Note:
The timeline finishes (Duration Mode irrelevant in this case) and the Animator Controller takes over, moving the square into the position that it is in at the end. Removing the Animator Controller from the Animator component remedies this and the square resets as expected.