Ok so what was happening with me is that, I have two folders containing images in my resources folder with the following hierarchy :
Resources->Images->Cards->[Some images & some more folders with images inside].
Resources->Images->Emoji_packs->[Some folders with images and spritesheet inside].
On building the assetbundle it showed the following error and warning :
.IsFolderAsset ()
UnityEditor.BuildPipeline:BuildAssetBundles(String, BuildAssetBundleOptions, BuildTarget
Unrecognized assets cannot be included in AssetBundles: “Assets/Resources/Images/Emoji_packs”.
UnityEditor.BuildPipeline:BuildAssetBundles(String, BuildAssetBundleOptions, BuildTarget)
It did build a bundle, but only contained Images from the cards folder, and just a mention of the ‘Emoji_packs’ folder.
Upon my various attempts to find a workaround I observed that the .meta of ‘Emoji_packs’ folder had been changing very weirdly. I saved a few of them as text mentioned below:
fileFormatVersion: 2
guid: 3a2dbff5d639e4d66a0344e9c1bb4b62
folderAsset: yes
DefaultImporter:
userData:
assetBundleName:
assetBundleName: emoji_card_assetbundle.unity3d {Double name fields, of which one is empty}
assetBundleVariant:
fileFormatVersion: 2
guid: 3a2dbff5d639e4d66a0344e9c1bb4b62
folderAsset: yes
timeCreated: 1429102700
licenseType: Free
DefaultImporter:
userData:
assetBundleName: emoji_card_assetbundle.unity3d
assetBundleVariant:
{This informatino wasnt present in the card.meta file}
fileFormatVersion: 2
guid: 3a2dbff5d639e4d66a0344e9c1bb4b62
folderAsset: yes
timeCreated: 1429102614
licenseType: Free
DefaultImporter:
userData:
assetBundleName:
assetBundleName: emoji_card_assetbundle.unity3d
assetBundleVariant:
{Combination of the above two.}
To make it work, I deleted ‘Library’ & ‘Temp’ folder. Then before opening unity I modified the .meta of ‘Emoji_packs’ folder to this and it finally worked -
fileFormatVersion: 2
guid: 3a2dbff5d639e4d66a0344e9c1bb4b62
folderAsset: yes
DefaultImporter:
userData:
assetBundleName: emoji_card_assetbundle.unity3d
assetBundleVariant:
P.S. Using unity 5.0.1f1 on a Windows machine.