ModelImporter.defaultClipAnimations

Switch to Manual
public ModelImporterClipAnimation[] defaultClipAnimations ;

Description

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

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

using UnityEngine;
using UnityEditor;

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