- Home /
Black skybox on android device
Hello, I have a problem with adding a skybox to my 2D game. I've created a texture and added it to my project (as texture type). Than I've created a "Material" based on that texture. And finally I've added a Skybox component to my MainCamera with "custom skybox" property set to that material. Everything is working great while playing in Unity editor and same good afterm building a Web Player. But after building for Android and running the app on the device I can't see that skybox. The background is black (even if camera's background property is set differently) and occasionally (very rarely) random pixels turns white and black again (only on the background, game is working fine). Oh, and that texture is small, so that is not the reason. I've tried everything. Any ideas what is going on? Is it maybe a Unity bug? Has anyone had this problem before?
You might check the shader and/or texture import settings for the assets you created. If they're much different from the settings used by Unity's own skybox, maybe try matching them.
Thank you, that was a shader problem indeed. I could have sworn that I have tried this one. It turns out that skybox on android works only with $$anonymous$$obile/Skybox shader and any other (even $$anonymous$$obile/...). $$anonymous$$aybe this sounds reasonably, but I was confused by the fact that my skybox worked correctly on the computer with other shaders too (not only Skybox shader). Thanks again.