- Home /
Issue with Animation.AddClip() firstFrame lastFrame possibly bugged.
I'm creating an animation clip from code, all the keyframes/curves are parsed from a file.
Playing the whole clip works great, it plays all of the character animations in order.. walk/run etc
What I need to do is also split the clip into smaller clips, for each of which I have the start frame and end frame.
This function should do the trick:
AddClip(AnimationClip clip, string newName, int firstFrame, int lastFrame, bool addLoopFrame = false);
However it doesn't. While the clips seem to start at the correct firstFrame, they don't stop at lastFrame, they all seem to be capped to 1 second.
Am I missing something, or is this a bug ?
Comment
Your answer
Follow this Question
Related Questions
Play a second animation 2 Answers
Added animation not Playing 0 Answers
Can the animation editor create local rotational data? 3 Answers
How to animate two animation clips at the same time? 1 Answer