- Home /
Send animation playhead to frame
How would I use a script to tell an animation playhead to go to and stop on a certain frame. I realize this might sound like unintended use of the animation system so let me explain. And if the answer is simply do this another way, please let me know. Using the new gui system, I have a Button with two child Images. Each image has an Animator that in a certain state, plays an animation that consists of 10 sprites. The sprites are numbers 0 to 9 so when played works like a counter. I want step through these frames using an accurate fps so I figured I could code something to control the playhead more accurately. The idea is that clicking the Button will make it stop. Is this way overkill just to get the benefits of the new gui with some control over its display?
Your answer
Follow this Question
Related Questions
The name 'Joystick' does not denote a valid type ('not found') 2 Answers
Getting a list of mecanim states in Animator 9 Answers
How to write a generic Mecanim Animation System in an EntityComponentSystem Architecture 1 Answer
How to script mecanim turning animations? 0 Answers
How to add additional scripts to an downloaded mecanim script 1 Answer