Version: 2020.1

ModelImporter.defaultClipAnimations

切换到手册
public ModelImporterClipAnimation[] defaultClipAnimations ;

描述

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

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

using UnityEngine;
using UnityEditor;

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