Version: 2023.2

ContentBuildInterface.GenerateAssetBundleBuilds

切换到手册
public static AssetBundleBuild[] GenerateAssetBundleBuilds ();

描述

Returns an array of AssetBundleBuild structs that detail the current AssetBundle layout, as set through the Inspector and stored in the AssetDatabase.

This API does not generate a build, instead it is a convenient function to populate the build definition into the format expected by some signatures of BuildPipeline.BuildAssetBundles, or the Scriptable Build Pipeline.

Additional resources: BuildPipeline.BuildAssetBundles, AssetDatabase.GetAllAssetBundleNames, AssetDatabase.GetAssetPathsFromAssetBundle.