Dear Friend,
We have problem about Animation time in Unity... We make an 300 second animation with 3dsmax and we imported this animation to Unity.
When we imported this animation to Unity we can see this animation only 10 second...
How can we show this animation as 300 second...
Regards
One way to do it is to set the animations speed through code. Like this:
function Start () {
animation ["animation name"].speed = 0.1;
}
Mike_3
July 13, 2010, 7:34pm
3
Quick hacky fix:
animation["yourAnimationName"].speed = 1/30.0;
Longer term fix:
Make sure you're using a reasonable amount of frames per second in the animation - it needs to be either 30 or 60 if I remember correctly - if you're just using 1, it'll finish in 10 seconds like you're seeing (10s * 30fps = 300 frames)
Thank you for your reply
Where must we write this code...
Thx
In your import settings you can specify a sample rate for your animation, that doesn't require any code at all.
Cheers,
==