How split animations in code, rather than import settings?

Hey guys,

I know that I can set the animation splits in the import settings, but is there any way to accomplish this through code?

I have a bunch of weapons that all use the same frames for animation, such as 15-25 reloading and 30-40 firing etc., so having to set import settings one by one is kind of tedious… if I could set this up through code, it’d be sweet!

Thanks for any help,
Jeff.

The second form takes in frame lengths.

That will definitly work at Runtime, not sure about within the Editor Utilities though, but you could try to integrate it with:

Which allows you to modify a model while it’s being imported (good for creating your own custom settings).

Gah I totally missed AddClip! Thanks so much for the help, Ntero!

Problem solved!