Unity not loading scene asset bundles properly
I've been busting my brains the last couple of days but no matter what I do, I can't seem to fix this problem.
So, in the app that I'm working on, I have a couple of scenes that are lightmapped. I build these scenes as asset bundle by calling Unity 5's BuildPipeline.BuildAssetBundles function. Then in the app, I download these bundles from a server; and once they are downloaded I load the scene by calling Application.LoadLevelAdditiveAsync.
Now comes the problem, when I make a build on Android and do this, the lightmaps seems to have not been loaded for some of the objects. I debugged the app, and using LightmapSettings.lightmaps.Length, I can see that the lightmaps are all loaded, but for some reason, SOME of the objects don't look lightmapped, while some do.
When I try this in the editor, I get a completely different issue, where the objects are all lightmapped, but most of the objects appear are pink because the shaders haven't been assigned properly (I guess).
I know it's not an issue with the scene cause when I load these levels directly (without asset bundles), they get loaded properly with absolutely no issues.
Any help will do guys! If you have any idea as to why this is happening, I'd love to hear your suggestions! I'm using Unity 5.2.1f1. The lightmaps are all non directional.