Version: 2023.2

BuildPlayerOptions.assetBundleManifestPath

切换到手册
public string assetBundleManifestPath ;

描述

清单文件(用于描述构建中使用的所有资源包)的路径(可选)。

When you call BuildPipeline.BuildAssetBundles to create your AssetBundles, Unity will also generate a manifest file with a filename matching the parent directory name and ".manifest" as its extension. 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 AssetBundles that you built.

You do not need to set this property when you use link.xml files, or if you generate AssetBundles using the Addressables package.

See Managed code stripping for more information about code stripping.

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