void PrintText(BuildLayout layout) { MemoryStream stream = new MemoryStream(); BuildLayoutPrinter.WriteBundleLayout(stream, layout); string report = Encoding.ASCII.GetString(stream.ToArray()); Debug.Log(report); }
/// <summary> /// Runs the build task with the injected context. /// </summary> /// <returns>The success or failure ReturnCode</returns> public ReturnCode Run() { BuildLayout layout = CreateBuildLayout(); Directory.CreateDirectory(Path.GetDirectoryName(kLayoutTextFile)); using (FileStream s = File.Open(kLayoutTextFile, FileMode.Create)) BuildLayoutPrinter.WriteBundleLayout(s, layout); UnityEngine.Debug.Log($"Build layout written to {kLayoutTextFile}"); s_LayoutCompleteCallback?.Invoke(layout); return(ReturnCode.Success); }