Drag-able animation timeline

I wonder if there is a way to drag mouse left and right to play and rewind an animation and pause when mouse release. Basically it is like a video player timeline.

I know how to create the drag script in C# already, but I seems can’t find the right way to move the animations forward and backward smoothly. Any ideas :slight_smile:


Just make

Make sure your animation is playing and you set the wrapmode to clampforever.

Here’s a small sample project i’ve made some time ago for another question. It includes a sample how you could use the normalized time property.

Hey, dont have time for long answer, but here is a link to another thread that will be useful for you