I found a way to load an asset bundle in an editor script using AssetBundle.CreateFromFile(). From that I can get a list of assets in the bundle:
string[ ] allAssets = assetBundle.GetAllAssetNames();
for( int i=0; i<allAssets.Length; i++ )
…
Say the bundled assets are prefabs. What I’d like to get is a list of all textures, materials, meshes, etc. referenced by the prefab. I didn’t really find a way to do this. Any help?
The case is: We have a script that builds various asset bundles and I’d like to output a detailed log-file about which assets actually are in the bundle.