How to match clip offsets from code?

When i’m in the editor, i can right click on an animation clip on the Timeline, and Match Offsets to Previous Clip. How can i do that runtime, from code?

More than a half year was not enough to answer this question. How embarrassing…

nobody knows…

Actually found solution you need to make Timeline package editable, then move TimelineAnimationUtilities.cs from Editor folder outside and then you can access TimelineAnimationUtilities.MatchPrevious from runtime

good some parts of unity are open source

1 Like

Thanks, i’ll give it a try!