private static void ClearPackingTagAndAssetBundle() { List <string> bundlePaths = EditorResHelper.GetAllResourcePath("Assets/Bundles/", true); foreach (string bundlePath in bundlePaths) { SetBundle(bundlePath, "", true); List <string> pathes = CollectDependencies(bundlePath); foreach (string pt in pathes) { if (pt == bundlePath) { continue; } SetBundleAndAtlas(pt, "", true); } } List <string> paths = EditorResHelper.GetAllResourcePath("Assets/Res", true); foreach (string pt in paths) { SetBundleAndAtlas(pt, "", true); } }
private static void ClearPackingTagForResAtlasFolder() { List <string> paths = EditorResHelper.GetAllResourcePath("Assets/Res/Atlas", true); foreach (string pt in paths) { SetBundleAndAtlas(pt, "", true); } }
private static void SetBundleHumanTexture(string dir, bool subDir = true) { List <string> paths = EditorResHelper.GetAllResourcePath(dir, subDir); foreach (string path in paths) { string path1 = path.Replace('\\', '/'); Object go = AssetDatabase.LoadAssetAtPath <Object>(path1); SetBundle(path1, go.name, true); } }
private void SetPackingTagForCommonAtlas() { List <string> paths = EditorResHelper.GetAllResourcePath("Assets/Res/Atlas/Common", true); foreach (string pt in paths) { string tmp = pt.Replace('\\', '/'); tmp = tmp.Replace("Assets/Res/Atlas/", ""); tmp = tmp.Substring(0, tmp.IndexOf('/')); SetBundleAndAtlas(pt, $"atlas{tmp.ToLower()}", true); } }
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); } }