/// <summary> /// Extra Flag -> ex: Android/ AndroidSD/ AndroidHD/ /// </summary> /// <param name="platfrom"></param> /// <param name="quality"></param> /// <returns></returns> public static string GetExportPath(BuildTarget platfrom, KResourceQuality quality = KResourceQuality.Sd) { string basePath = Path.GetFullPath(Application.dataPath + "/" + KEngine.AppEngine.GetConfig(KEngineDefaultConfigs.AssetBundleBuildRelPath) + "/"); if (File.Exists(basePath)) { KBuildTools.ShowDialog("路径配置错误: " + basePath); throw new System.Exception("路径配置错误"); } if (!Directory.Exists(basePath)) { Directory.CreateDirectory(basePath); } string path = null; switch (platfrom) { case BuildTarget.Android: case BuildTarget.iPhone: case BuildTarget.StandaloneWindows: var platformName = KResourceModule.BuildPlatformName; if (quality != KResourceQuality.Sd) // SD no need add { platformName += quality.ToString().ToUpper(); } path = basePath + platformName + "/"; break; default: KBuildTools.ShowDialog("构建平台配置错误"); throw new System.Exception("构建平台配置错误"); } return(path); }
public static void ClearPlayerPrefs() { PlayerPrefs.DeleteAll(); PlayerPrefs.Save(); KBuildTools.ShowDialog("Prefs Cleared!"); }