When creating an android apk with the "development build" and the "debug script" noted in the build settings, all my textures appear black even if the Unity splash screen is missing (probably black). I am using Unity 5.0.1f1 and I am creating android apk (API 19, KitKat) I tried other API levels, the results are the same.
Create a new project, a new scene and add one user interface button using GameObject-> UI->. Open the build settings and add a scene. Choose Android.
If I create and run with the development build or script option disabled, the splash screen and button will display correctly.
If I build & run with the tested options "build development" and "script", the splash screen and button will be black.
I use Nexus 5 as a target, unfortunately, I do not have other devices with which I can test.
If I remove the texture from the button by clearing the "Original Image" field in the Image script, the button will no longer turn black and will display correctly (but now there is no texture)
The above example is the simplest. The initial problem was that all the textures are completely black in my game when setting the "build build" and "script debugging" options. The alpha channel of the hue is still respected, so black textures can be translucent.
If I build a standalone PC with the check "build development" and "debug w370", the button will display correctly.
Can anyone else get this problem? Does anyone know what may be different from the “development build” and “debug script” for android, which can cause black textures?
Thank you for your help.
Jinja source share