public static void ExtractAnCompressClipsFromFBX() { AnimationClip[] extractClips = ExtractClipsFromFBX(); if (extractClips != null && extractClips.Length > 0) { var clipInfos = (from clip in extractClips let clipAssetPath = AssetDatabase.GetAssetPath(clip) select AnimationClipCompress.CreateCompressedClip(clip, 4) ).ToArray(); SelectionUtility.ActiveObjects(clipInfos); } }
public static void CompressClip() { AnimationClip[] selectedClips = Selection.GetFiltered <AnimationClip>(SelectionMode.Assets); if (selectedClips == null || selectedClips.Length == 0) { return; } var clipInfos = (from clip in selectedClips let clipAssetPath = AssetDatabase.GetAssetPath(clip) select AnimationClipCompress.CreateCompressedClip(clip, 4) ).ToArray(); SelectionUtility.ActiveObjects(clipInfos); }