手动处理动画分割 在导入FBX模型过程中,若带有动画呢,需要对它进行切分。 当然这个工作可以在Unity中完成。 比如: 这样手动来分割进行。 自动动画切分 这就需要代码了。 把代码保存成cs文件,然后放在Editor文件夹中。若没有此文件夹,就自己创建一个! 代码如下: [csharp] view plain copy print ? // FbxAnimListPostprocessor.cs : Use an external text file to import a list of // splitted animations for FBX 3D models. // // Put this script in your "Assets/Editor" directory. When Importing or // Reimporting a FBX file, the script will search a text file with the // same name and the ".txt" extension. // File format: one line per animation clip "firstFrame-lastFrame loopFlag animationName" // The keyworks "loop" or "noloop" are optional. // Example: // 0-50 loop Move forward // 100-190 die using UnityEngine; using UnityEditor;