Ejemplo n.º 1
0
        public static void ExtractComonForCurrentBundles()
        {
            // Clear All AssetBundles
            var dep = new AssetBundler();

            foreach (var n in AssetDatabase.GetAllAssetBundleNames())
            {
                var p = AssetDatabase.GetAssetPathsFromAssetBundle(n);
                dep.SetCommonAssetAsBundles(p);
            }
        }
Ejemplo n.º 2
0
        public static void AssignAssetBundleNames()
        {
            // Clear All AssetBundles
            var dep    = new AssetBundler();
            var assets = EditorAssetUtil.ListAssets(Selection.objects);
            var paths  = new List <string>();

            foreach (var a in assets)
            {
                paths.Add(AssetDatabase.GetAssetPath(a));
            }
            //dep.SetPathFilter(true, @"\.jpg$", @"\.png$", @"\.tga$");
            dep.SetCommonAssetAsBundles(paths);
        }