Search Unity

Stretching the Timeline

Discussion in 'Timeline' started by CDF, Feb 14, 2019.

  1. CDF

    CDF

    Joined:
    Sep 14, 2013
    Posts:
    1,311
    I assume this functionality doesn't exist. But I'd love to be able to stretch all clips on the timeline to change its duration easily, while maintaining relative positions and timing between clips.
    Much like this Animation window can do:

    anim_stretch.PNG

    I'm using 2018.1, so maybe this functionality exists in later Unity versions?
     
  2. unity2life

    unity2life

    Joined:
    Jun 6, 2020
    Posts:
    19
    Just select all the keyframes in the timeline with the rectangle selection method, then you will see exactly those vertical bars, you have marked in the above picture, where u can easily adjust the total animation time. All inner keyframes seem to be adjusted proportionally in relation to the total time ...
    I use Unity version 2019.3.15, so it might be just a new feature, you didn't have at that time, but actually it took me some time to find this essential feature, too ;-) ...
     
  3. seant_unity

    seant_unity

    Unity Technologies

    Joined:
    Aug 25, 2015
    Posts:
    1,516
    If you are using clips you can hold shift when resizing to apply time-scaling as well, albeit, this does not necessarily apply to the whole timeline, only individual clips.
     
    KinanGH likes this.