Version: 2023.2
public string assetBundleName ;

描述

AssetBundle 名称。

When building an AssetBundle this property is converted to lowercase and used as the filename of the AssetBundle. On platforms with case sensitive file systems, such as Linux, the AssetBundle load would fail unless the lowercase form of the AssetBundle name is specified. To avoid surprises we recommend choosing a lowercase name for your AssetBundle.

The name may start with folder names, for example "level1/materials/bundle_a", in which case the build creates those as subfolders of the output path.

The provided name can end with a file extension, but typically AssetBundles are built with no extension because of the way AssetBundle variants work.

In the case of AssetBundle variants, the name of the AssetBundle file is this string, concatenated with the AssetBundleBuild.assetBundleVariant property as its extension, and all converted to lowercase.

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