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

BuildPlayerContext.AddAdditionalMetadataPathToPlayerOptions

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 AddAdditionalMetadataPathToPlayerOptions(string metadataPath);

Parameters

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

Description

Adds an additional build metadata path to the BuildPlayerOptions.previousBuildMetadataLocations array passed in as part of the 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, it will only be called once.

If the path passed into this method is not a valid build metadata directory, at build time an error will be thrown.

For more information on locating the build metadata directory for a build, refer to BuildHistory.