public static void ClearPersistentDataPath() { foreach (string dir in Directory.GetDirectories(KResourceManager.GetAppDataPath())) { Directory.Delete(dir, true); } foreach (string file in Directory.GetFiles(KResourceManager.GetAppDataPath())) { File.Delete(file); } }
private static void ClearAllLuaFiles() { var productBundlePath = KResourceManager.EditorProductFullPath + "/" + KResourceManager.BundlesDirName; DeleteLuaDirectoy(productBundlePath); productBundlePath = Application.streamingAssetsPath + "/" + KResourceManager.BundlesDirName; DeleteLuaDirectoy(productBundlePath); productBundlePath = KResourceManager.GetAppDataPath() + "/" + KResourceManager.BundlesDirName; DeleteLuaDirectoy(productBundlePath); productBundlePath = Application.dataPath + "/Resources"; DeleteLuaDirectoy(productBundlePath); productBundlePath = Application.dataPath + "/" + EngineConfig.instance.ResourcesBuildDir; DeleteLuaDirectoy(productBundlePath); AssetDatabase.Refresh(); Log.Info("Clear lua files over"); }
public static void OpenPersistentDataPath() { System.Diagnostics.Process.Start(KResourceManager.GetAppDataPath()); }