- Home /
How do I combine a GUI scroll with an animation?
I want to have a scrollbar that loops with the animation but I can pause and slide forward/back through the animation. I don't know how to connect the scrollbar with the animation. My eventual goal is to have essentially a play interface similar to that of windows media player. I could have the scroll bar run through a position but setting up the curves to coincide w/ that vs. setting up an animation is a pain.
Answer by whydoidoit · Jul 25, 2012 at 08:23 PM
You need to scrollbar to read and write the animation["yourAnimationName"].normalizedTime (or .time). Normalized time is always between 0 and 1, the other time is between 0 and animation["whatever"].length - (though ClampForever does allow it to run beyond these limits).
Your answer
Follow this Question
Related Questions
Animation ["1"].speed = 0; Doesn't work 2 Answers
Set up Animator with specific seconds 1 Answer
Pause, Play and Rewind buttons for a function 1 Answer
Creating a play/pause button for animations. 0 Answers
Playing several animations 1 Answer