Version: Unity 6.6 Alpha (6000.6)
LanguageEnglish
  • C#

BuildPlayerContext.AddPreviousBuildReportDirectory

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Declaration

public void AddPreviousBuildReportDirectory(string directory);

Parameters

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

Description

Adds a build report directory to BuildPlayerOptions.previousBuildReportDirectories for this build.

This is useful if you want the player build to retrieve type stripping information from content-only 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.