public static void Clear()
        {
            if (sAssetBundleFileInfos != null)
            {
                sAssetBundleFileInfos.Clear();
                sAssetBundleFileInfos = null;
            }
            if (sAssetFileInfos != null)
            {
                sAssetFileInfos.Clear();
                sAssetFileInfos = null;
            }
            sAnalyzeScene = null;

#if UNITY_5 || UNITY_5_3_OR_NEWER
            EditorUtility.UnloadUnusedAssetsImmediate();
#endif
            System.GC.Collect();
        }
        public static bool Analyze(string directoryPath)
        {
            if (!Directory.Exists(directoryPath))
            {
                Debug.LogError(directoryPath + " is not exists!");
                return(false);
            }

            if (analyzeCustomDepend != null)
            {
                sAssetBundleFileInfos = analyzeCustomDepend(directoryPath);
            }
            if (sAssetBundleFileInfos == null)
            {
#if UNITY_5 || UNITY_5_3_OR_NEWER
                sAssetBundleFileInfos = AnalyzeManifestDepend(directoryPath);
#endif
            }
            if (sAssetBundleFileInfos == null)
            {
                sAssetBundleFileInfos = AnalyzAllFiles(directoryPath);
            }
            if (sAssetBundleFileInfos == null)
            {
                return(false);
            }

            sAnalyzeScene = new AssetBundleFilesAnalyzeScene();
            AnalyzeBundleFiles(sAssetBundleFileInfos);
            sAnalyzeScene.Analyze();

            if (!sAnalyzeScene.IsAnalyzing())
            {
                if (analyzeCompleted != null)
                {
                    analyzeCompleted();
                }
            }
            return(true);
        }