Version: 2022.3
LanguageEnglish
  • C#

BuildPlayerOptions.assetBundleManifestPath

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

public string assetBundleManifestPath;

Description

The path to an manifest file describing all of the asset bundles used in the build (optional).

When you call BuildPipeline.BuildAssetBundles to create your AssetBundles, it also creates a manifest file describing the bundles produced. You can assign the path to this manifest file to assetBundleManifestPath to ensure that a player build does not strip any types used in the asset bundles from the build.

BuildPipeline.BuildAssetBundles creates the manifest file in your AssetBundle output path, with a filename matching the parent directory name and ".manifest" as its extension. You can specify the path to the manifest using an absolute path or a path relative to the project directory.

You do not need to set this property when you generate asset bundles using the Scriptable Build Pipeline package.

Additional resources: BuildPipeline.BuildAssetBundles, AssetBundleManifest.

Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961