Skip to content

Instantly share code, notes, and snippets.

@baba-s
Created March 31, 2024 23:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save baba-s/ab311b20ba49fc8d786c60585f28c1bc to your computer and use it in GitHub Desktop.
Save baba-s/ab311b20ba49fc8d786c60585f28c1bc to your computer and use it in GitHub Desktop.
using UnityEditor;
using UnityEditor.Build.Reporting;
public class Example
{
[MenuItem( "Tools/Hoge" )]
private static void Hoge()
{
var latestReport = BuildReport.GetLatestReport();
var files = latestReport.GetFiles();
var steps = latestReport.steps;
var summary = latestReport.summary;
var strippingInfo = latestReport.strippingInfo;
var packedAssets = latestReport.packedAssets;
var scenesUsingAssets = latestReport.scenesUsingAssets;
var errorSummary = latestReport.SummarizeErrors();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment