I'm working on a project where the user can load assetbundles during runtime, so we only have limited control over what assetbundles are used. Because of that, we have to be careful when we load multiple assetbundles since AssetBundle.LoadFromFile(bundlePath)
returns null if a bundle with the same name is already loaded. It will write this Error to the Log:
The AssetBundle 'testbundle' can't be loaded because another AssetBundle with the same files is already loaded.
The main problem now is that I couldn't find a way to get the name of the assetbundle in the file without loading the assetbundle. Using the filename is a workaround, but won't work if people rename the assetbundle file.