コード例 #1
0
        public UTinyBuildReport GetBuildReport()
        {
            m_IdCounter = 0;

            var buildDir = UTinyBuildPipeline.GetBuildDirectory(UTinyEditorApplication.Project, UTinyPlatform.HTML5, UTinyEditorApplication.EditorContext.Workspace.BuildConfiguration);
            var jsonFile = new FileInfo(Path.Combine(buildDir, "build-report.json"));

            if (jsonFile.Exists)
            {
                var json = File.ReadAllText(jsonFile.FullName);
                return(UTinyBuildReport.FromJson(json));
            }

            return(null);
        }