Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


BuildHistoryLimit

Maximum number of builds to retain in the build history.
Read time 1 minuteLast updated 13 days ago

Definition

public static int BuildHistoryLimit { get; set; }

Remarks

When a new build pushes the count over this limit, the oldest entries are removed, where "oldest" is determined by the build start time recorded in each entry's BuildReportSummary. Build folders copied in from another machine are subject to the same policy.
A value of 0 disables automatic deletion. Negative values are clamped to 0.
Changes take effect on the next build. The existing history isn't pruned when this value is changed.
This is a per-project setting that Unity stores in
UserSettings/BuildPipelineSettings.asset
. It's also exposed in Project Settings > Build Pipeline.
Additional Resources: BuildHistory.ApplyRetentionPolicy