How to load CompatibilityAssetBundleManifest at runtime?

I just switched from the legacy AssetBundle system to the SBP and was trying to use the CompatibilityBuildPipeline.BuildAssetBundles.

The legacy interface BuildPipeline.BuildAssetBundles would generate an AssetBundle file for class AssetManifest which could be loaded as normal AssetBundles.

However, the interface CompatibilityBuildPipeline.BuildAssetBundles generated a YML format CompatibilityAssetBundleManifest which I don’t know how to load.

Hello, I met the same problem, and I solve it with these steps:

  1. BuildAssetBundles with SBP
  2. Save the CompatibilityAssetBundleManifest returned by step1.(AssetDatabase.SaveAssets)
  3. Build the saved CompatibilityAssetBundleManifest asset independent

Then you will get the packed CompatibilityAssetBundleManifest, and you can load it as same as before.