コード例 #1
0
ファイル: KAutoBuilder.cs プロジェクト: dingzheng8866/GEngine
        public static void SymbolLinkResource()
        {
            KSymbolLinkHelper.DeleteAllLinks(ResourcesSymbolLinkHelper.AssetBundlesLinkPath);

            var exportPath = GetResourceExportPath();
            var linkPath   = GetLinkPath();

            KSymbolLinkHelper.SymbolLinkFolder(exportPath, linkPath);

            AssetDatabase.Refresh();
        }
コード例 #2
0
ファイル: KAutoBuilder.cs プロジェクト: vasu93/HelloWorld
        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();
        }
コード例 #3
0
        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);
        }
コード例 #4
0
ファイル: KAutoBuilder.cs プロジェクト: mr-kelly/KSFramework
        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);
        }
コード例 #5
0
        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();
        }