Timeline with custom duration

Hey! I am kinda new to blueprints, I am trying to make a timeline of custom length, so far the best solution I have found is to edit the play rate, however I am not sure what to put as the default value for the custom play rate variable, it is a object reference to timeline??

1 Like

Once you have made the TL, it’s in the component list of your BP

1 Like

You should be able just to double click the time line BP and edit the lenght of time value inside curve.

Timeline Graph : Length 1.0, Key 1 (0.0, 0.0), Key 2 (1.0, 1.0)
This is a 1 second timeline going from 0.0 to 1.0 output

Using the setup in your pic “Duration” is basically the new length. So if you need it to go from start to finish in 0.1s (100ms), duration = 0.1

  • 1.0 = 1s
  • 10.0 = 10s
  • 0.001 = 1ms

I should note that ALL TIME based applications in UE are tick based. Timeline’s, Timer’s and Delay’s all work by deducting last frame delta seconds from the clock.

e.g. 1 second Timer/Timeline/Delay
(1000.0ms - delta seconds) → is less than equal to 0.0 → [True]: End Timer/Timeline, [False]: resume to next frame.

Here’s a thread the covers this.