- Home /
 
How can I read time from clip that is PlayQueued?
How can I read animation["clipname"].time from a clip which was played using objectname.animation.PlayQueued ("clipname", QueueMode.CompleteOthers); ? I know why I can't do it normal way (because Unity is making a copy of original animation). The question is – how can I do it?
               Comment
              
 
               
               
               Best Answer 
              
 
              Answer by CodeElemental · Mar 14, 2014 at 12:38 PM
Does this :
 AnimationState state = objectname.animation.PlayQueued ("clipname", QueueMode.CompleteOthers);
 float timePassed = state.time; // passed time.
 
               work for you ?
Your answer
 
             Follow this Question
Related Questions
Finish One Combo 1 Answer
A node in a childnode? 1 Answer
my animation script does not work 0 Answers
Blender Animation Looping Delay Problem 2 Answers
SpriteManager 2 1 Answer