Version: 2023.1

AssetImporter.assetBundleName

切换到手册
public string assetBundleName ;

描述

获取或设置 AssetBundle 名称。

This property makes it possible to programmatically access the assignment of Assets to AssetBundles, corresponding to the AssetBundle control found at the bottom of the Inspector. This property is stored in the .meta file for the Asset, and inside the AssetDatabase.

Alterantively, AssetBundle contents can also be defined programmatically by filling in an array of AssetBundleBuild structures when calling BuildPipeline.BuildAssetBundles.

See Also: AssetBundleBuild.assetBundleName, AssetDatabase.GetAssetPathsFromAssetBundle, AssetDatabase.GetImplicitAssetBundleName.