- Home /
Question by
yzaq · Apr 06, 2015 at 02:05 PM ·
animationfbximporterimport modelloop animaiton
Is there way to check "Add loop Frame" automatically when FBX importing?
Is there way to check "Add loop Frame" automatically when FBX importing?
Doew anyone kinow is there way to check "Add loop Frame" automatically when FBX animation imported or "Add loop frame" before running the game as assets?
It seems no exist "ModelImporter variables"..
I've already exported hundreds of loop animations with cutting last frame for my project.
So,I need to know about that..
Comment
Answer by Mykel Williams · Apr 07, 2015 at 09:41 AM
Hi i dont know if this is any helpful but i think someone might have asked the same thing if i understand the question check it out, i appolagize if i am wrong.
http://answers.unity3d.com/questions/410493/how-to-get-an-animation-inside-a-fbx-file-to-loop.html
Answer by dewa1s · Apr 08, 2015 at 09:20 AM
void OnPreprocessModel() {
ModelImporter importer = assetImporter as ModelImporter;
var anim = importer.clipAnimations;
foreach(var clip in anim){
clip.loop = true;
}
importer.clipAnimations = anim;