Imported model from assetbundle doesn't look right

Hello!

Whenever I create a prefab from a model in a scene and add this to an assetbundle and load it afterwards dynamically it doesn’t look right, doesn’t cast shadows and is generally darker.

The left one is the model from the assetbundle and the right one is the model which is already in the scene.

The model itself has “receive shadows, cast shadows” turned on:
(Top Assetbundle; Bottom original)

The textures look also weird in the inspector for some reason although have the same settings.


The way I load the model from the bundle:

WWW www = WWW.LoadFromCacheOrDownload("<file>", 1);
yield return www;

AssetBundle bundle = www.assetBundle;

AssetBundleRequest request = bundle.LoadAllAssetsAsync<GameObject>();
yield return request;

foreach (Object asset in request.allAssets)
{
    GameObject obj = asset as GameObject;
    if (obj != null)
    {
        Instantiate(obj);
    }
}

I’d highly appreciate it if somebody could help me!

Hi,
I’m experiencing the same problem now.
Did you find a solution?

Hey!

I’ve fixed the issue by baking the lightning manually before importing. I don’t really know why this helped but it did.