Version: 2017.2

ModelImporter.defaultClipAnimations

切换到手册
public ModelImporterClipAnimation[] defaultClipAnimations ;

描述

基于 TakeInfo 生成所有默认动画剪辑的列表。

另请参阅:ModelImporterClipAnimation。另请参阅:TakeInfo

public class CreateAnimationClip : AssetPostprocessor
{
    void OnPreprocessAnimation()
    {
        var modelImporter = assetImporter as ModelImporter;
        modelImporter.clipAnimations = modelImporter.defaultClipAnimations;
    }
}