- Home /
Mecanim playback time of an animation
I am using this code but he is taking the time all animations I need to take the time an animation specifies can someone help me?
my code main:
AnimatorStateInfo currentState = anim.GetCurrentAnimatorStateInfo(0);
float playbackTime = currentState.normalizedTime % 1;
print (playbackTime);
comment: i want make that here
one example:
if(walking.Time > 0.5){
// Do something
}
Comment
Your answer
Follow this Question
Related Questions
Should I use playables, mecanim, or legacy to create keys and clips ? 0 Answers
Model gets really big when animator controller is applied? 1 Answer
mecanim animation runs at random speed on iOS 0 Answers
Mecanim and Ragdoll Issues? 2 Answers
Mecanim animation not working correctly after separating from original fbx 0 Answers