Skip to content

Commit

Permalink
Merge pull request #28 from bonfirestudios/master
Browse files Browse the repository at this point in the history
2022 updates
  • Loading branch information
ryanc-unity authored Nov 28, 2022
2 parents 1fe3748 + 66d9d40 commit c55fc3c
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions com.unity.build-report-inspector/Editor/BuildReportInspector.cs
Original file line number Diff line number Diff line change
Expand Up @@ -648,12 +648,18 @@ private void DisplayAssetsView(float vPos)

private void OnOutputFilesGUI()
{
if (report.files.Length == 0)
#if UNITY_2022_1_OR_NEWER
var files = report.GetFiles();
#else
var files = report.files;
#endif // UNITY_2019_3_OR_NEWER

if (files.Length == 0)
return;

var longestCommonRoot = report.files[0].path;
var longestCommonRoot = files[0].path;
var tempRoot = Path.GetFullPath("Temp");
foreach (var file in report.files)
foreach (var file in files)
{
if (file.path.StartsWith(tempRoot))
continue;
Expand All @@ -666,7 +672,7 @@ private void OnOutputFilesGUI()
}
}
var odd = false;
foreach (var file in report.files)
foreach (var file in files)
{
if (file.path.StartsWith(tempRoot))
continue;
Expand Down

0 comments on commit c55fc3c

Please sign in to comment.