Pass the length of timeline in from a variable

I am able to follow the tutorial and have the crystal go to the ball but I find it a little slow.
I believe the way to speed it up is to change the length of timeline to be shorter (maybe 0.5 secs instead of 0.68).
But I have to go into timeline to change that.
I was wondering if it’s possible to pass the length into timeline from a variable or a literal float?

I was trying to find an input like that but I don’t see one on the timeline node:
image

While you can’t adjust the length of a timeline (this would cause unintended behavior with values in the timeline tracks being cut-off early or being not being what you want them to be) you can adjust the rate of play.

Fun fact: Any blueprint that contains a timeline also stores a reference to that timeline as a variable. With that you can call SetPlayRate, that supports values between 0 → Infinity. You can also use this to get the length of the timeline at runtime.

See screenshot below:

oh cool, let me try it out. thank you

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.

Privacy & Terms