- Home /
Assetbundle Textures appear black on Android, although they work fine in the GameView
I've been trying to fix this for several days now and I'm not really sure how. First I'm creating AssetBundles which have prefabs and GameObjects with Textures. After building the AssetBundle, it's uploaded to a server, and in another Android app, I retrieve it and unload its assets. Everything works fine on the Unity editor "Game View", but on the android phone, the textures of dynamic GameObjects appear black. Static textures, like the texture I'm using for the background, appear normally on both the editor and the android device. The textures which appear black are those that I retrieve from the AssetBundles.
When I searched about it, I came across these suggestions:
It might have to do with compression. The problem is, these textures are retrieved from AssetBundles on the server dynamically. I can not "build" the project with the suggested settings after I unload them from the bundle. I tried automatically compressing the images to "Compressed ETC 4 Bits" before loading them in the AssetBundle and I build the AssetBundle targeting Android, and it didn't solve the issue. https://forum.unity.com/threads/black-textures-on-some-devices-android-versions.195328/
I also tried to do it manually by loading the texture (and material) from the AssetBundle and assigning it to the loaded object, but it still only appears in the Editor, not the phone. https://answers.unity.com/questions/238109/problem-with-materials-after-creating-asset-bundle.html
I tried saving the image as a sprite before loading it to the AssetBundle. And in the app I tried creating a new texture with that sprite, but that approach also didn't work. https://answers.unity.com/questions/651984/convert-sprite-image-to-texture.html
I'm working with Unity 2018.1.0f2. Since there's no visible error, I'm not really sure why this bug happens. Any help or suggestion why this happens or what I can do to fix it?
Your answer
![](https://koobas.hobune.stream/wayback/20220612164456im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Why does assetbundle load change texture size? 1 Answer
Android texture AssetBundles loading problem 0 Answers
how to save a unreadable texture in runtime 0 Answers
Texture problem android 0 Answers
Joysticks disappears Android 1 Answer