Esempio n. 1
0
        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);
            }
        }
Esempio n. 2
0
        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);
        }