ModelImporter.defaultClipAnimations
Declaration
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; } }