- Home /
 
Cropping animation clip of FBX file at import
 ModelImporter modelImporter = assetImporter as ModelImporter;
         Debug.Log("Name: " + modelImporter.clipAnimations[0].name);
         Debug.Log("1: First Frame: " + modelImporter.clipAnimations[0].firstFrame);
         Debug.Log("1: Last Frame: " + modelImporter.clipAnimations[0].lastFrame);
 
         modelImporter.clipAnimations[0].firstFrame = (float) 100;
         modelImporter.clipAnimations[0].lastFrame = (float) 1000;
 
         Debug.Log("2: First Frame: " + modelImporter.clipAnimations[0].firstFrame);
         Debug.Log("2: Last Frame: " + modelImporter.clipAnimations[0].lastFrame);
 
               How do you explain the fact that the first and second logs show the same result?
               Comment
              
 
               
              Your answer