Ejemplo n.º 1
0
        public static void Generator()
        {
            string filesPath = AssetManagerSetting.EditorLoadAssetListPath;

            if (File.Exists(filesPath))
            {
                File.Delete(filesPath);
            }

            PathUtil.CheckPath(filesPath, true);


            FileStream   fs = new FileStream(filesPath, FileMode.CreateNew);
            StreamWriter sw = new StreamWriter(fs);


            // Resources
            Resources(sw);

            // StreamingAssets
            StreamingAssets(sw);


            sw.Close(); fs.Close();
            AssetDatabase.Refresh();
            Debug.Log("[AssetListCsv]" + filesPath);
            EditorUtility.ClearProgressBar();



            DontUnloadAssetListCsv.Generator();
        }
 public static void GeneratorDontUnloadAssetListCsv()
 {
     DontUnloadAssetListCsv.Generator();
 }