LoadFromFile: Textures on Materials and Shaders missing

Hi,

I’m creating my asset bundle for iOS via:

BuildPipeline.BuildAssetBundles ("Assets/AssetBundles/iOS",
    BuildAssetBundleOptions.ChunkBasedCompression,
    BuildTarget.iOS);

On certain moments in the game I’m instantiating asset bundle prefabs via:
loadedAssetBundle = AssetBundle.LoadFromFile("Assets/.../AssetBundleName");

AssetBundleManager.loadedAssetBundle.LoadAsset<GameObject>("prefabName");

But on instantiation, the textures aren’t used correctly by the shaders and materials. They’re black or purple.

I created one sprite atlas with all the textures used by the prefabs from the asset bundle. Do I need to do something with the shaders and materials used by the prefabs?

There’re two objects(characters) loading prefabs from the static ‘loadedassetbundle’. Could that be an issue regarding to the textures missing?

this can help:)

1 Like