- Home /
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 :)
Cheers
Answer by Bunny83 · Feb 21, 2013 at 01:04 PM
Just make
- use a range of 0.0 to 1.0 for the slider 
- assign the slider value to the normalizedTime of your animation. 
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.
Answer by Vonni · Feb 21, 2013 at 01:03 PM
Hey, dont have time for long answer, but here is a link to another thread that will be useful for you
http://answers.unity3d.com/questions/392550/previewing-animator-from-a-specific-time.html
Your answer
 
 
             Follow this Question
Related Questions
Distribute terrain in zones 3 Answers
Controlling an animation by dragging a gameObject with the mouse 0 Answers
Multiple Timelines 1 Answer
 koobas.hobune.stream
koobas.hobune.stream 
                       
                
                       
			     
			 
                