Am I able to Edit keys in a timeline during runtime?

Im using a timeline to control bullet spread overtime, and generative weapons will change the maximum spread value. My simplest solution to this would be to edit the value of the highest key in the timeline whenever the weapon is equipped. but as far as I can find I can’t find a way to edit keys during runtime.

Hi.

You cant edit the curve at runtime, but you can replace the track curve of the timeline to another pre-built curve by name

Gracias, I’m currently trying to see if I can do it with C++ I can’t prebuild it cause the values will be generated during runtime and they aren’t deterministic. Thankyou for the answer, cheers!

I figured out a way to fake it by mapping a range to the float value of the curve. they always start as 0 for me so I just plugged the max value I wanted into the out b range and had the out a range set to my max value on the timeline

1 Like

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