Hello, I am attempting to add animations via code and need a little assistance. We are importing an fbx with its default "Take 001" animation clip file attached. When we select "Split Animations" and add animations via the IDE everything works fine.
What we would like to do is split the animation up in code, and define the name and frame ranges in code. The reason for this is that we have many characters that share the same frame ranges, but not necessarily the animations or rig. We just want to be able to automate the process of creating animations for these characters on the fly.
We have looked at the AddClip method, but it seems to assume that an animation clip already exist in the library.
var idle: AnimationClip; characterObject.animation.AddClip(idle, "idle", 1, 60, true);
Thanks