AssetBundle.LoadAsset<T> does not work

I have an asset bundle that contains multiple assets with the same name, but different types. This became a problem when I tried to load from the bundle, as I’m just passing in the name of the object I want to load. I thought to resolve this issue I should explicitly pass in the type I want to load, so I changed my code to using AssetBundle.LoadAsset instead. This however always returns null if I’m trying to load an asset that has the same name as another in the bundle (but again, different types). I’ve also tried AssetBundle.LoadAsset(path,Type), but this has the same problem.

This person is having the same issue: c# - unity assetbundle loadasset type - Stack Overflow

Someone suggested using the full path, including extension, which does work, but I would like to avoid this. It’s just going to require some messy code and I really shouldn’t have to do it.

I have the same question… any results?

Nope, unfortunately the solution we went with was to make sure assets going into the same bundle do not share the same name (i.e. append _mat, _tex, etc…).
I logged a bug with Unity about this awhile ago and it’s still Open :frowning: