Beispiel #1
0
        protected static void Rename()
        {
            AssetBundleRename.SetAssetBundles(string.Format("{0}/{1}", Application.dataPath, GameConfig.Resource), (path) =>
            {
                string name = path.Remove(0, Application.dataPath.Length + 1);

                if (name.Contains("."))
                {
                    name = name.Substring(0, name.IndexOf("."));
                }
                return(name.ToLower());
            });
            AssetDatabase.Refresh();
        }
Beispiel #2
0
        protected static void Clear()
        {
            AssetBundleRename.Clear();

            AssetDatabase.Refresh();
        }