コード例 #1
0
 private static void OnAfterBuildPlayerEvent(BuildTarget buildTarget, string str)
 {
     if (Directory.Exists(ResourcesSymbolLinkHelper.GetABLinkPath()))
     {
         ResourcesSymbolLinkHelper.RemoveSymbolLinkResource();
     }
 }
コード例 #2
0
 private static void OnBeforeBuildPlayerEvent()
 {
     // Auto Link resources when play!
     if (!Directory.Exists(ResourcesSymbolLinkHelper.GetABLinkPath()))
     {
         Log.Warning("Auto Link Bundle Resources Path... {0}", ResourcesSymbolLinkHelper.GetABLinkPath());
         ResourcesSymbolLinkHelper.SymbolLinkResource();
     }
 }
コード例 #3
0
 private static void OnBeforeBuildPlayerEvent()
 {
     // Auto Link resources when play! //NOTE 打包ab时不link资源,在Editor可以从磁盘中直接读取
     //if (!Directory.Exists(ResourcesSymbolLinkHelper.GetABLinkPath()))
     {
         Log.Info("Auto Link Bundle Resources Path... {0}", ResourcesSymbolLinkHelper.GetABLinkPath());
         ResourcesSymbolLinkHelper.SymbolLinkResource();
     }
 }
コード例 #4
0
        private static void OnAfterBuildPlayerEvent(BuildTarget buildTarget, string pathToBuiltProject)
        {
            if (Directory.Exists(ResourcesSymbolLinkHelper.GetABLinkPath()))
            {
                ResourcesSymbolLinkHelper.RemoveSymbolLinkResource();
            }

            if (buildTarget == BuildTarget.Android)
            {
                if (!pathToBuiltProject.EndsWith(".apk"))
                {
                    //android studio project: create gradle script
                    Log.Info($"Android Studio工程导出完成,创建Gradle打包脚本到{pathToBuiltProject}");
                    KAutoBuilder.CreateGradleBatScript(pathToBuiltProject);
                }
            }
        }