Loading assetbundle from resources

The problem is following:
I have an assetbundle named “imgs.unity3d” in resources folder. But the following code isn’t working:

Object tmp = Resources.Load ("imgs"); //my assetbundle
Debug.Log (tmp == null);

Debug returns me true, which means it didn’t load. Is it allowed to load assetbundle from resources?

This is something that has puzzled me too, since if you expose a AssetBundle variable it seems like you can drag stuff to it but it doesn’t really work.

However, there is an ugly workaround.

It works for dragging references to an AssetBundle, so it MAY also work for loading from the Resources folder.

When you create your AssetBundle, save it as a .txt file. Then load it as a TextAsset, and create the AssetBundle with AssetBundle.CreateFromMemory( textAssetRef.bytes ).,

An assetbundle is not an object. The Resouces folder can store any asset, just not asset bundles.