Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


AddPreviousBuildReportDirectory(string)

Adds a build report directory to _previousBuildReportDirectories for this build.
Read time 1 minuteLast updated 11 days ago

Definition

public void AddPreviousBuildReportDirectory(string directory)

Parameters

directory

The path to a build report directory. If the path is invalid, an error will be thrown during the build process.

Remarks

This is useful if you want the player build to retrieve type stripping information from BuildPipeline.BuildContentDirectory builds you do prior to the Player build.
If this method is called on the same path multiple times, the path is only added once.
If the path passed into this method is not a valid build report directory, at build time an error will be thrown.
For more information on locating the build report directory for a build, refer to BuildHistory.
For more information, refer to How code stripping affects content.