- Home /
Question by
yosh · May 27, 2010 at 10:36 AM ·
animationanimationeventkeyframe
AnimationEditor-Event: different framecount
Hi,
ive created a camera-animation with the animation-editor. On the timeline in frame 300 by second five, ive added an animation event which calls a function.
print(Time.frameCount);
Then i get the output " 161". Any explanation on that? I thought i get the 300 value.... Thanks for your help..
Comment
Best Answer
Answer by Mike 3 · May 27, 2010 at 10:41 AM
Animation frames are seperate to game frames - they're run as if they were 30 fps constantly, whie Time.frameCount is just how many rendered frames you've encountered so far
Thanks for your quick answer. But if i click the animationclip itself,the sample-rate is 60.. Whats with that?
sorry, yeah, 30 or 60, same answer though - it's just processing multiple animation frames per real rendered frame
Your answer
![](https://koobas.hobune.stream/wayback/20220613031307im_/https://answers.unity.com/themes/thub/images/avi.jpg)