public static void SymbolLinkResource() { KSymbolLinkHelper.DeleteAllLinks(ResourcesSymbolLinkHelper.AssetBundlesLinkPath); var exportPath = GetResourceExportPath(); var linkPath = GetLinkPath(); KSymbolLinkHelper.SymbolLinkFolder(exportPath, linkPath); AssetDatabase.Refresh(); }
public static void LinkToLuaToBundleResource() { KSymbolLinkHelper.DeleteAllLinks("Assets/BundleResources/BuildByDir/ToLua/"); KSymbolLinkHelper.DeleteAllLinks("Assets/BundleResources/BuildByDir/ToLua/Lua"); var exportPath = "Assets/ToLua/Lua"; var linkPath = "Assets/BundleResources/BuildByDir/ToLua/Lua"; KSymbolLinkHelper.SymbolLinkFolder(exportPath, linkPath); AssetDatabase.Refresh(); }
private static IEnumerator LinkSettings() { KSymbolLinkHelper.DeleteAllLinks(SettingLinkPath); yield return(new WaitForSeconds(1.0f)); var exportPath = KResourceModule.ProductPathWithoutFileProtocol + AppConfig.SettingResourcesPath + "/"; if (!Directory.Exists(SettingLinkPath)) { Directory.CreateDirectory(SettingLinkPath); } KSymbolLinkHelper.SymbolLinkFolder(exportPath, SettingLinkPath); }
private static IEnumerator LinkLua() { KSymbolLinkHelper.DeleteAllLinks(LuaLinkPath); yield return(new WaitForSeconds(1.0f)); var exportPath = KResourceModule.AppBasePath + AppConfig.LuaPath + "/"; if (!Directory.Exists(LuaLinkPath)) { Directory.CreateDirectory(LuaLinkPath); } KSymbolLinkHelper.SymbolLinkFolder(exportPath, LuaLinkPath); }
public static void SymbolLinkResource() { KSymbolLinkHelper.DeleteAllLinks(AssetBundlesLinkPath); var exportPath = GetResourceExportPath(); var linkPath = GetABLinkPath(); KSymbolLinkHelper.SymbolLinkFolder(exportPath, linkPath); //NOTE 特别无解,无法link这两个目录 /*KSymbolLinkHelper.DeleteAllLinks(LuaLinkPath); * exportPath = KResourceModule.ProductPathWithoutFileProtocol + AppConfig.LuaPath + "/"; * if (!Directory.Exists(LuaLinkPath)) Directory.CreateDirectory(LuaLinkPath); * KSymbolLinkHelper.SymbolLinkFolder(exportPath, LuaLinkPath); * * KSymbolLinkHelper.DeleteAllLinks(SettingLinkPath); * exportPath = KResourceModule.ProductPathWithoutFileProtocol + AppConfig.SettingResourcesPath + "/"; * if (!Directory.Exists(SettingLinkPath)) Directory.CreateDirectory(SettingLinkPath); * KSymbolLinkHelper.SymbolLinkFolder(exportPath, SettingLinkPath);*/ Debug.Log("Add Symbol LinkPath."); AssetDatabase.Refresh(); }