Pre/Post Extrapolation in Timeline — Unity3D
What is Pre and Post Extrapolation in Timeline?
Pre and post extrapolation are two features of Timeline that allow you to control how animation data is approximated and extended in the gaps before and after animation clips. This can be useful for creating smooth, seamless animations, or for extending the length of an animation.
Pre Extrapolation
Pre extrapolation refers to the time before the animation clip starts to play. You can use pre extrapolation to specify how the animation should behave before the clip starts. For example, you could specify that the animation should hold its current position, or that it should smoothly transition to the starting position of the clip.
Post Extrapolation
Post extrapolation refers to the time after the animation clip finishes playing. You can use post extrapolation to specify how the animation should behave after the clip finishes. For example, you could specify that the animation should hold its current position, or that it should smoothly transition to the ending position of the clip.
Use Cases
Pre and post extrapolation can be used for a variety of purposes, including:
- Creating smooth, seamless animations
- Extending the length of an animation
- Preventing animation glitches
- Creating special effects
Features
Pre and post extrapolation offer a number of features, including:
- A variety of extrapolation modes
- Support for custom extrapolation curves
- The ability to extrapolate multiple properties at the same time
- The ability to preview extrapolation before committing to it
Conclusion
Pre and post extrapolation are powerful features that can be used to create a variety of effects with Timeline. By understanding how they work, you can use them to create smooth, seamless animations that look and feel natural.