Can you overwrite timeline duration in code?
We have an animation for a visual timer set to 3 seconds in the runtime.
If needed, can we overwrite this in code later?
If so, is there anything I need to set up in my timeline or state machine?
https://www.loom.com/share/1d34569942c84ec18500b9b92441464c?sid=14fadcc3-5ab2-4b9a-abb7-850194961c98
Hi
It'll be better to drive this logic entirely from code. So instead of having a 3 second timeline, you'd have a start and end timeline, and blend between those values, and use an input to control the progress.
You can then set the input from the runtime, for example a value between 0-100. Then the timer can be controlled through code at runtime.