private static void ClearPackingTagAndAssetBundle() { //List<string> bundlePaths = EditorResHelper.GetAllResourcePath("Assets/Bundles/", true); //foreach (string bundlePath in bundlePaths) //{ // SetBundle(bundlePath, "", true); //} List <string> paths = EditorResHelper.GetAllResourcePath("Assets/Res", true); foreach (string pt in paths) { SetBundleAndAtlas(pt, "", true); } }
private static void SetBundleAndAtlasWithoutShare(string dir, string dirPath, bool subDir = false, string bundleName = null) { List <string> paths = EditorResHelper.GetAllResourcePath(dir, subDir); foreach (string path in paths) { string path1 = path.Replace('\\', '/'); Object go = AssetDatabase.LoadAssetAtPath <Object>(path1); SetBundle(path1, bundleName == null ? Path.Combine(dirPath, go.name) : bundleName); //List<string> pathes = CollectDependencies(path1); //foreach (string pt in pathes) //{ // if (pt == path1) // { // continue; // } // // SetBundleAndAtlas(pt, go.name); //} } }