I have one object with one material. Let's say that this material have Shader A on it. Then I select another Shader B, then there is no texture on it and I apply correct texture and everything is ok, I can switch shaders now.
Now I want to do it in a runtime, I have a script and in editor, in runtime I can switch Shaders without problem, From A to B, and again from B to A.
I have included both shaders in Resources folder, in ProjectSettings/Graphics, and also this shaders are used by another objects in my game. Once more, it works in editor - in runtime.
Now I build for Android, default shader that was selected in editor works great on Android, but if I switch to another shader, switch is done but there is no Texture on my object, it is all white/gray.
What is going on and how can I fix it?
PS:
Shader change in Editor is applied for all scenes what is great for me, in Android it is made only in scene where is script located. I'm working in Unity 4.6.
↧